TOS 5.0.176 - Access to HTTPS NAS WEB UI with a Nginx Proxy
Posted: 26 Nov 2022, 05:10
TOS 5.0.176 - Access to HTTPS NAS WEB UI with a Nginx Proxy
Hello,
I want to access to my NAS using a HTTPS from Cloudfare for that I need that the Nginx Proxy that I am running as a docker container work as a proxy for the NAS Web UI.
The Nginx seems to work semi-fine, as when I go to the servername of my domain, I got the /tos/ and the wait loading, but then I got a white page so it seems something is not loading correctly, maybe something related with Javascript or so.
Can you please check it?
My Nginx Configuration for the NAS Server Name listening on HTTPS(443) is:
# TOS - WEB
upstream tos_https_docker_network {
server 172.17.0.1:<HTTPS_NAS_PORT>; # WEB-TOS-NAS-HTTPS - 172.17.0.1 IS THE IP of the NAS on the DOCKER NETWORK
}
location / {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
# NOT WORKING proxy_set_header Connection $connection_upgrade;
add_header Content-Security-Policy "default-src 'self' *.googleapis.com *.<MY-DOMAIN>.es *.cloudflare.com *.terra-master.com *.cloudfront.net *.baidu.com *.bdimg.com *.virtualearth.net *.ditu.live.com *.bing.com 'unsafe-inline' 'unsafe-eval' blob: data: ws: wss:;" always;
proxy_pass https://tos_https_docker_network;
}
Hello,
I want to access to my NAS using a HTTPS from Cloudfare for that I need that the Nginx Proxy that I am running as a docker container work as a proxy for the NAS Web UI.
The Nginx seems to work semi-fine, as when I go to the servername of my domain, I got the /tos/ and the wait loading, but then I got a white page so it seems something is not loading correctly, maybe something related with Javascript or so.
Can you please check it?
My Nginx Configuration for the NAS Server Name listening on HTTPS(443) is:
# TOS - WEB
upstream tos_https_docker_network {
server 172.17.0.1:<HTTPS_NAS_PORT>; # WEB-TOS-NAS-HTTPS - 172.17.0.1 IS THE IP of the NAS on the DOCKER NETWORK
}
location / {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
# NOT WORKING proxy_set_header Connection $connection_upgrade;
add_header Content-Security-Policy "default-src 'self' *.googleapis.com *.<MY-DOMAIN>.es *.cloudflare.com *.terra-master.com *.cloudfront.net *.baidu.com *.bdimg.com *.virtualearth.net *.ditu.live.com *.bing.com 'unsafe-inline' 'unsafe-eval' blob: data: ws: wss:;" always;
proxy_pass https://tos_https_docker_network;
}