1
0
Fork 0

Use the configuration for headscale
All checks were successful
continuous-integration/drone/push Build is passing

I use this only for headscale for know, so I will just use the configuration
for it.
See https://github.com/juanfont/headscale/wiki/nginx-configuration for
details.

In future lets see, I will changes the mechanism if I need a more
powerful way to handle vhost.
This commit is contained in:
Daniele Tricoli 2022-08-29 03:44:24 +02:00
parent 740fa44656
commit 74c082f7ae

View file

@ -44,6 +44,11 @@ server {
ssl_stapling on;
ssl_stapling_verify on;
{% if item.is_reverse_proxy_site is defined %}
client_body_timeout 5m;
client_header_timeout 5m;
{% endif %}
{% if item.acme_challenges is defined %}
location ^~ /.well-known/acme-challenge {
@ -55,10 +60,14 @@ server {
location / {
proxy_pass {{ item.proxy_pass }};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_redirect default;
proxy_read_timeout 6m;
proxy_ignore_client_abort off;
proxy_request_buffering off;
proxy_buffering off;
proxy_no_cache "always";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
{% else %}