Use nginx as reverse proxy on walker, removing traefik
SSL coming soon
This commit is contained in:
@ -34,3 +34,17 @@
|
||||
validate: docker-compose -f %s config
|
||||
notify: restart plausible
|
||||
become: true
|
||||
|
||||
- name: Install nginx config
|
||||
template:
|
||||
src: files/nginx-docker.conf
|
||||
dest: /etc/nginx/http.d/plausible.conf
|
||||
mode: "0644"
|
||||
notify: reload nginx
|
||||
become: true
|
||||
vars:
|
||||
server_name: plausible.theorangeone.net elbisualp.theorangeone.net
|
||||
upstream: plausible-plausible-1.docker:8000
|
||||
ssl_cert_path: /etc/nginx/ssl/theorangeone.net
|
||||
location_extra: |
|
||||
rewrite ^/js/index.js$ /js/plausible.js last;
|
||||
|
Reference in New Issue
Block a user