mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 02:43:05 +00:00
Add websockets config
This commit is contained in:
parent
f6e83413e5
commit
dc18d64286
1 changed files with 9 additions and 0 deletions
|
@ -29,8 +29,17 @@ server {
|
||||||
ssl_certificate_key <PATH_CERT_KEY>;
|
ssl_certificate_key <PATH_CERT_KEY>;
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
default keep-alive;
|
||||||
|
'websocket' upgrade;
|
||||||
|
'' close;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://<IP:PORT>;
|
proxy_pass http://<IP:PORT>;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
proxy_set_header Host $server_name;
|
proxy_set_header Host $server_name;
|
||||||
proxy_redirect http:// https://;
|
proxy_redirect http:// https://;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
Loading…
Reference in a new issue