Use nginx as reverse proxy on walker, removing traefik
SSL coming soon
This commit is contained in:
25
ansible/files/nginx-docker.conf
Normal file
25
ansible/files/nginx-docker.conf
Normal file
@ -0,0 +1,25 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
|
||||
server_name {{ server_name }};
|
||||
set $upstream {{ upstream }};
|
||||
|
||||
ssl_certificate {{ ssl_cert_path }}/fullchain.pem;
|
||||
ssl_certificate_key {{ ssl_cert_path }}/key.pem;
|
||||
ssl_trusted_certificate {{ ssl_cert_path }}/cert.pem;
|
||||
include includes/ssl.conf;
|
||||
|
||||
include includes/docker-resolver.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://$upstream;
|
||||
|
||||
{%- if location_extra is defined +%}
|
||||
{{ location_extra }}
|
||||
{%- endif +%}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user