This commit is contained in:
parent
af0f09b8b0
commit
77a184b054
@ -1,4 +1,4 @@
|
|||||||
# {{ansible_managed}}
|
# {{ ansible_managed }}
|
||||||
user www-data;
|
user www-data;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
@ -71,7 +71,7 @@ http {
|
|||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name {{ proxysite.domain }};
|
server_name {{ proxysite.domain }};
|
||||||
proxy_ssl_name {{ proxysite.domain}};
|
proxy_ssl_name {{ proxysite.domain }};
|
||||||
ssl_certificate /etc/letsencrypt/live/{{ proxysite.domain }}/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/{{ proxysite.domain }}/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/{{ proxysite.domain }}/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/{{ proxysite.domain }}/privkey.pem;
|
||||||
ssl_stapling on;
|
ssl_stapling on;
|
||||||
@ -79,11 +79,11 @@ http {
|
|||||||
{%- if proxysite.bigrequests %}
|
{%- if proxysite.bigrequests %}
|
||||||
client_max_body_size 8G;
|
client_max_body_size 8G;
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
location /{
|
|
||||||
proxy_pass https://{{ proxysite.ip }};
|
|
||||||
{-% if proxysite.ignorecert %}
|
{-% if proxysite.ignorecert %}
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
location /{
|
||||||
|
proxy_pass https://{{ proxysite.ip }};
|
||||||
}
|
}
|
||||||
location /metrics{
|
location /metrics{
|
||||||
proxy_pass https://{{ proxysite.ip }};
|
proxy_pass https://{{ proxysite.ip }};
|
||||||
|
Loading…
Reference in New Issue
Block a user