Skip to content
Snippets Groups Projects
Commit 0a5b216f authored by Pierre Ozoux's avatar Pierre Ozoux Committed by GitHub
Browse files

Adds webhook!

parent 897d998e
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,9 @@ mode http ...@@ -34,6 +34,9 @@ mode http
rspadd Strict-Transport-Security:\ max-age=15768000 rspadd Strict-Transport-Security:\ max-age=15768000
use_backend letsencrypt-web if { path_beg /.well-known/acme } use_backend letsencrypt-web if { path_beg /.well-known/acme }
{{ range $host, $containers := groupBy $ "Env.LIBRESH_WEBHOOK_HOST" }}
use_backend webhook if { path_beg /XxosJDdRpo7Rww87VkJGzv1QLegnhh-uniq-libresh }
{{end}}
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }} {{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
use_backend {{ $host}} if { hdr(host) -i {{ $host }} } use_backend {{ $host}} if { hdr(host) -i {{ $host }} }
{{end}} {{end}}
...@@ -60,3 +63,8 @@ backend {{ $host }} ...@@ -60,3 +63,8 @@ backend {{ $host }}
backend letsencrypt-web backend letsencrypt-web
cookie SERVERID insert nocache indirect cookie SERVERID insert nocache indirect
server Server letsencrypt-web:80 cookie Server server Server letsencrypt-web:80 cookie Server
{{ range $host, $containers := groupBy $ "Env.LIBRESH_WEBHOOK_HOST" }}
backend webhook
cookie SERVERID insert nocache indirect
server Server webhook:80 cookie Server
{{end}}
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