2023-12-21 16:13:32 +00:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
server {
|
2024-02-29 19:46:32 +00:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2023-12-21 16:13:32 +00:00
|
|
|
|
|
|
|
server_name {{ server_name }};
|
|
|
|
set $upstream {{ upstream }};
|
|
|
|
|
|
|
|
ssl_certificate {{ ssl_cert_path }}/fullchain.pem;
|
2023-12-21 16:35:20 +00:00
|
|
|
ssl_certificate_key {{ ssl_cert_path }}/privkey.pem;
|
|
|
|
ssl_trusted_certificate {{ ssl_cert_path }}/chain.pem;
|
2023-12-21 16:13:32 +00:00
|
|
|
include includes/ssl.conf;
|
|
|
|
|
|
|
|
include includes/docker-resolver.conf;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://$upstream;
|
|
|
|
|
|
|
|
{%- if location_extra is defined +%}
|
|
|
|
{{ location_extra }}
|
|
|
|
{%- endif +%}
|
|
|
|
}
|
|
|
|
}
|