I wanted a reversed proxy because of DZGA automatically started instead of changing the credentials in Google every time with a restart.
I have made an "A" DNS at No-ip
But now i am pulling my hair out. When type in a location like: location /domoticz {
proxy_set_header Host $host;
It will redirect at the NGINX welcome page. Is it because i have a free DNS domain name?? Do i need wildcards?? I am just guessing.
This is the config file i use.
Code: Select all
server {
listen 80;
listen [::]:80;
server_name my.ddns.net;
#change to match your address
return 301 https://$server_name$request_uri;
}
server {
listen 448 ssl http2;
listen [::]:448 ssl http2;
server_name my.ddns.net;
#change to match your address
ssl_certificate /etc/letsencrypt/live/my.ddns.net/fullchain.pem;
#change to match your address
ssl_certificate_key /etc/letsencrypt/live/my.ddns.net/privkey.pem;
#change to match your address
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_pass http://localhost:11631; #Local ipno to dzga
proxy_read_timeout 90;
}
}