Skip to content
Snippets Groups Projects
Commit ac22cce2 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

rename services

parent 7268e879
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,11 @@ haproxy:
ports:
- "80:80"
- "443:443"
letsencrypt:
letsencrypt-web:
image: nginx
volumes:
- "./acme-challenge:/usr/share/nginx/html/.well-known/acme-challenge:ro"
letsencrypt-watch:
letsencrypt:
image: indiehosters/letsencrypt
volumes:
- "./haproxy:/etc/haproxy"
......
......@@ -33,7 +33,7 @@ mode http
reqadd X-Forwarded-Proto:\ https
rspadd Strict-Transport-Security:\ max-age=15768000
use_backend letsencrypt if { path_beg /.well-known/acme }
use_backend letsencrypt-web if { path_beg /.well-known/acme }
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
use_backend {{ $host}} if { hdr(host) -i {{ $host }} }
{{end}}
......@@ -48,6 +48,6 @@ backend {{ $host }}
{{end}}
{{end}}
backend letsencrypt
backend letsencrypt-web
cookie SERVERID insert nocache indirect
server Server letsencrypt:80 cookie Server
server Server letsencrypt-web:80 cookie Server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment