diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-05-25 12:19:42 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-03 13:52:35 +0900 |
| commit | 2aa2bbc5fe4594daa3c782a4bfe258db77fdc01f (patch) | |
| tree | 61cf4b2a29bc6d47a1c9cbed6475a6b7a026e7ac /doc | |
| parent | d2cadc2cfe4cbdfb607b84fdd0f356f14dbc5c1c (diff) | |
services: nginx: Use a fixed location for the nginx configuration file.
The motivation is twofold:
1. We can ensure the presence of the nginx default configuration fragments in
the configuration file directory;
2. 'herd reload nginx' can now be used to reload an updated configuration
file.
Before this change, 'include fastcgi_params;', for example, would fail with
error:
nginx: [emerg] open() "/gnu/store/fastcgi_params" failed
(2: No such file or directory) in /gnu/store/...-nginx.conf:50
* gnu/services/web.scm (%nginx-configuration-file): New variable.
(nginx-activation): Delay configuration file check to...
(nginx-shepherd-service): ... a new one-shot 'nginx-init' service. Adjust to
use the %nginx-configuration-file variable for the configuration file.
<actions>: Add a new 'configuration' action.
(nginx-conf-files, nginx-etc-directory): New procedures.
(nginx-service-type): Extend etc-service-type with nginx-service-type.
* gnu/tests/web.scm (%nginx-servers): Add an include directive to test config
to ensure it now works.
Merges: !8811
Change-Id: I26882ab01288ec4dd374e9f282e95ffa33dfa3cc
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
