aboutsummaryrefslogtreecommitdiffstats
path: root/snippets
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-08-04 00:00:58 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-08-04 01:39:35 +0200
commitda8b727f156d23553eecb90e8731d39c6027cb02 (patch)
tree929930ef53d3bacf9e472bceb441a3cdec150b83 /snippets
parentd9946b9ab478026defed364485d970b4041e1a2a (diff)
Makefile: Use variables for target directories etc.
Diffstat (limited to 'snippets')
-rw-r--r--snippets/apache2.conf2
-rw-r--r--snippets/nginx.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/snippets/apache2.conf b/snippets/apache2.conf
index c42a9fb..45d7c7f 100644
--- a/snippets/apache2.conf
+++ b/snippets/apache2.conf
@@ -5,7 +5,7 @@
# non-ssl one) of each virtual host requiring authorization.
<Location /.well-known/acme-challenge/>
- ProxyPass unix:///run/lacme-www.socket|http://localhost/.well-known/acme-challenge/
+ ProxyPass unix://@@runstatedir@@/lacme-www.socket|http://localhost/.well-known/acme-challenge/
Require all granted
</Location>
diff --git a/snippets/nginx.conf b/snippets/nginx.conf
index 86592d2..6775489 100644
--- a/snippets/nginx.conf
+++ b/snippets/nginx.conf
@@ -6,7 +6,7 @@
location ^~ /.well-known/acme-challenge/ {
# Pass ACME requests to lacme's webserver component
- proxy_pass http://unix:/run/lacme-www.socket;
+ proxy_pass http://unix:@@runstatedir@@/lacme-www.socket;
## Alternatively, you can let nginx serve the requests by
## setting 'challenge-directory' to '/var/www/acme-challenge' in