summaryrefslogtreecommitdiff
path: root/acme2certifier/systemd.patch
blob: 9666da791dbf0efc196001e21b14aa59f5be6fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/examples/nginx/acme2certifier.ini	2020-05-24 13:46:24.045480702 +0200
+++ b/examples/nginx/acme2certifier.ini	2020-05-24 12:52:35.875846711 +0200
@@ -1,10 +1,13 @@
 [uwsgi]
+chdir = /var/lib/acme2certifier
 module = acme2certifier_wsgi:application
+plugins = python
+wsgi-file = /var/lib/acme2certifier/acme2certifier_wsgi.py
 master = true
 processes = 5
-uid = nginx
-socket = /run/uwsgi/acme.sock
-chown-socket = nginx
+uid = http
+socket = /run/acme2certifier/acme.sock
+chown-socket = http
 chmod-socket = 660
 vacuum = true
 die-on-term = true
--- a/examples/nginx/uwsgi.service	2020-05-24 16:26:36.289592292 +0200
+++ b/examples/nginx/uwsgi.service	2020-05-24 13:44:56.156306673 +0200
@@ -2,12 +2,12 @@
 Description=uWSGI instance to serve acme2certifier
 
 [Service]
-RuntimeDirectory=uwsgi
-ExecStart=/usr/bin/bash -c 'cd /opt/acme2certifier; uwsgi --ini acme2certifier.ini'
+RuntimeDirectory=acme2certifier
+ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/acme2certifier.ini
 Restart=always
 Type=notify
 NotifyAccess=all
-User=nginx
+User=http
 
 [Install]
 WantedBy=multi-user.target