mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
25 lines
550 B
Plaintext
25 lines
550 B
Plaintext
server {
|
|
|
|
listen 9001;
|
|
|
|
include /etc/nginx/includes/server_params.conf;
|
|
include /etc/nginx/includes/proxy_params.conf;
|
|
|
|
ssl_certificate /ssl/%%certfile%%;
|
|
ssl_certificate_key /ssl/%%keyfile%%;
|
|
|
|
error_page 497 301 =307 https://$host:$server_port$request_uri; # force ssl
|
|
|
|
location / {
|
|
# Proxy pass
|
|
proxy_pass http://127.0.0.1:9000;
|
|
|
|
# Next three lines allow websockets
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
}
|