mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/prometheus: throw a helpful error when services.prometheus.environmentFile is defined
This commit is contained in:
parent
0e4abb0df7
commit
7f7780daa5
3 changed files with 6 additions and 2 deletions
|
@ -1809,7 +1809,9 @@ Superuser created successfully.
|
|||
<literal>services.prometheus.environmentFile</literal> has
|
||||
been removed since it was causing
|
||||
<link xlink:href="https://github.com/NixOS/nixpkgs/issues/126083">issues</link>
|
||||
and Prometheus now has native support for secret files.
|
||||
and Prometheus now has native support for secret files, i.e.
|
||||
<literal>basic_auth.password_file</literal> and
|
||||
<literal>authorization.credentials_file</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
|
|
|
@ -508,7 +508,7 @@ In addition to numerous new and upgraded packages, this release has the followin
|
|||
|
||||
- A new option `services.prometheus.enableReload` has been added which can be enabled to reload the prometheus service when its config file changes instead of restarting.
|
||||
|
||||
- The option `services.prometheus.environmentFile` has been removed since it was causing [issues](https://github.com/NixOS/nixpkgs/issues/126083) and Prometheus now has native support for secret files.
|
||||
- The option `services.prometheus.environmentFile` has been removed since it was causing [issues](https://github.com/NixOS/nixpkgs/issues/126083) and Prometheus now has native support for secret files, i.e. `basic_auth.password_file` and `authorization.credentials_file`.
|
||||
|
||||
- Dokuwiki now supports caddy! However
|
||||
- the nginx option has been removed, in the new configuration, please use the `dokuwiki.webserver = "nginx"` instead.
|
||||
|
|
|
@ -1554,6 +1554,8 @@ in
|
|||
|
||||
imports = [
|
||||
(mkRenamedOptionModule [ "services" "prometheus2" ] [ "services" "prometheus" ])
|
||||
(mkRemovedOptionModule [ "services" "prometheus" "environmentFile" ]
|
||||
"It has been removed since it was causing issues (https://github.com/NixOS/nixpkgs/issues/126083) and Prometheus now has native support for secret files, i.e. `basic_auth.password_file` and `authorization.credentials_file`.")
|
||||
];
|
||||
|
||||
options.services.prometheus = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue