summaryrefslogtreecommitdiff
path: root/doc/snippets
diff options
context:
space:
mode:
authorArun Isaac2023-08-07 16:44:40 +0100
committerArun Isaac2023-08-09 21:29:12 +0100
commite9615a02c6713e287e0a04c79bdd0ac365304cb0 (patch)
tree7912032d29978883bedb74a11ec1b5ba515c3a24 /doc/snippets
parent8d0ce39fd4301fda4fe85fe085e721afbb2c3ce2 (diff)
downloadguix-forge-e9615a02c6713e287e0a04c79bdd0ac365304cb0.tar.gz
guix-forge-e9615a02c6713e287e0a04c79bdd0ac365304cb0.tar.lz
guix-forge-e9615a02c6713e287e0a04c79bdd0ac365304cb0.zip
nginx: Add forge-nginx service.
* guix/forge/nginx.scm, doc/snippets/acme-restart-nginx-sudoers.scm: New files. * doc/forge.skb (Services)[forge nginx service]: Document the forge-nginx service.
Diffstat (limited to 'doc/snippets')
-rw-r--r--doc/snippets/acme-restart-nginx-sudoers.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/snippets/acme-restart-nginx-sudoers.scm b/doc/snippets/acme-restart-nginx-sudoers.scm
new file mode 100644
index 0000000..7f705b9
--- /dev/null
+++ b/doc/snippets/acme-restart-nginx-sudoers.scm
@@ -0,0 +1,7 @@
+(operating-system
+ …
+ (sudoers-file
+ (mixed-text-file "sudoers"
+ "@include " %sudoers-specification
+ "\nacme ALL = NOPASSWD: " (file-append shepherd "/bin/herd") " restart nginx\n"))
+ …)