Skip to content
Snippets Groups Projects
Commit f004b24d authored by Michel Memeteau's avatar Michel Memeteau
Browse files

Merge branch 'release/1.0'

parents 8ac7f46c b011166c
No related branches found
No related tags found
No related merge requests found
...@@ -19,13 +19,15 @@ Each time you add a container with the environment variable `VIRTUAL_HOST` it wi ...@@ -19,13 +19,15 @@ Each time you add a container with the environment variable `VIRTUAL_HOST` it wi
- docker - docker
- docker-compose - docker-compose
## Get started ## Get started ( for libre.sh )
``` ```
docker network create lb_web # docker network create lb_web (already done when you install libre.sh )
git clone https://github.com/indiehosters/haproxy.git cd /system/
git clone https://lab.libreho.st/libre.sh/compose/haproxy
cd haproxy cd haproxy
docker-compose up -d libre enable
libre start
``` ```
In these commands, we just created one network (lb_web) to isolate HAProxy with the web servers, and then, we started the containers of HAProxy and companions. In these commands, we just created one network (lb_web) to isolate HAProxy with the web servers, and then, we started the containers of HAProxy and companions.
......
...@@ -31,7 +31,7 @@ services: ...@@ -31,7 +31,7 @@ services:
networks: networks:
- lb_web - lb_web
letsencrypt: letsencrypt:
image: indiehosters/letsencrypt image: libresh/letsencrypt
volumes: volumes:
- "./haproxy:/etc/haproxy" - "./haproxy:/etc/haproxy"
- "./acme-challenge:/html-root/.well-known/acme-challenge/" - "./acme-challenge:/html-root/.well-known/acme-challenge/"
......
...@@ -33,7 +33,6 @@ mode http ...@@ -33,7 +33,6 @@ mode http
bind *:443 ssl no-sslv3 crt /etc/haproxy/certs bind *:443 ssl no-sslv3 crt /etc/haproxy/certs
reqadd X-Forwarded-Proto:\ https reqadd X-Forwarded-Proto:\ https
rspadd Strict-Transport-Security:\ max-age=15768000 rspadd Strict-Transport-Security:\ max-age=15768000
rspidel Server
rspidel X-Powered-By rspidel X-Powered-By
acl acme path_beg /.well-known/acme acl acme path_beg /.well-known/acme
......
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