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
ac22cce2
Commit
ac22cce2
authored
8 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
rename services
parent
7268e879
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+2
-2
2 additions, 2 deletions
docker-compose.yml
templates/haproxy.cfg.tmpl
+3
-3
3 additions, 3 deletions
templates/haproxy.cfg.tmpl
with
5 additions
and
5 deletions
docker-compose.yml
+
2
−
2
View file @
ac22cce2
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
templates/haproxy.cfg.tmpl
+
3
−
3
View file @
ac22cce2
...
...
@@ -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
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