Use nginx as reverse proxy on walker, removing traefik
SSL coming soon
This commit is contained in:
@ -8,10 +8,7 @@ services:
|
||||
- db
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.commento.rule=Host(`commento.theorangeone.net`)
|
||||
- coredns
|
||||
environment:
|
||||
- COMMENTO_POSTGRES=postgres://commento:commento@db:5432/commento?sslmode=disable
|
||||
- COMMENTO_ORIGIN=https://commento.theorangeone.net
|
||||
@ -37,5 +34,5 @@ services:
|
||||
- POSTGRES_USER=commento
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
coredns:
|
||||
external: true
|
||||
|
@ -18,3 +18,15 @@
|
||||
validate: docker-compose -f %s config
|
||||
notify: restart commento
|
||||
become: true
|
||||
|
||||
- name: Install nginx config
|
||||
template:
|
||||
src: files/nginx-docker.conf
|
||||
dest: /etc/nginx/http.d/commento.conf
|
||||
mode: "0644"
|
||||
notify: reload nginx
|
||||
become: true
|
||||
vars:
|
||||
server_name: commento.theorangeone.net
|
||||
upstream: commento-commento-1.docker:8080
|
||||
ssl_cert_path: /etc/nginx/ssl/theorangeone.net
|
||||
|
Reference in New Issue
Block a user