summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2026-05-25 12:19:42 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2026-06-03 13:52:35 +0900
commit2aa2bbc5fe4594daa3c782a4bfe258db77fdc01f (patch)
tree61cf4b2a29bc6d47a1c9cbed6475a6b7a026e7ac /doc
parentd2cadc2cfe4cbdfb607b84fdd0f356f14dbc5c1c (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