Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Haproxy
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timothee Gosselin
Haproxy
Commits
0a5b216f
Commit
0a5b216f
authored
8 years ago
by
Pierre Ozoux
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adds webhook!
parent
897d998e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/haproxy.cfg.tmpl
+8
-0
8 additions, 0 deletions
templates/haproxy.cfg.tmpl
with
8 additions
and
0 deletions
templates/haproxy.cfg.tmpl
+
8
−
0
View file @
0a5b216f
...
@@ -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}}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment