domoticz et Ngnix problème d'affichage des icones selecteur
Publié : 20 févr. 2021, 11:50
Bonjour,
Voila j'ai installé google assistant pour domoticz avec Ngnix,
tout fonctionne très bien sauf les icones des sélécteurs
avec ngnix

sans ngnix

j'ai essayé ce code récupéré sur la configuration de DGZA(https://github.com/DewGew/Domoticz-Goog ... erse-proxy)
et ce code trouvé sur le site de domoticz (https://www.domoticz.com/wiki/WebServer_Proxy)
une ligne me créait une erreur >> proxy_set_header Connection $connection_upgrade;
est-ce que ça joue sur les icones je ne pense pas.
Voila j'ai installé google assistant pour domoticz avec Ngnix,
tout fonctionne très bien sauf les icones des sélécteurs
avec ngnix

sans ngnix

j'ai essayé ce code récupéré sur la configuration de DGZA(https://github.com/DewGew/Domoticz-Goog ... erse-proxy)
Code : Tout sélectionner
erver {
if ($host = marsflow.myasustor.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name marsflow.myasustor.com;
#change to match your address
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name marsflow.myasustor.com;
#change to match your address
ssl_certificate /etc/letsencrypt/live/marsflow.myasustor.com/fullchain.pem; # managed by Certbot
#change to match your address
ssl_certificate_key /etc/letsencrypt/live/marsflow.myasustor.com/privkey.pem; # managed by Certbot
#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 /domoticz {
rewrite ^/domoticz/?(.*) /$1 break;
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:9982; #local ipno to domoticz
proxy_read_timeout 90;
}
location /assistant {
rewrite ^/assistant/?(.*) /$1 break;
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:3030; #local ipno to dzga
proxy_read_timeout 90;
}
}
une ligne me créait une erreur >> proxy_set_header Connection $connection_upgrade;
est-ce que ça joue sur les icones je ne pense pas.
Code : Tout sélectionner
server {
if ($host = marsflow.myasustor.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name marsflow.myasustor.com;
#change to match your address
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name marsflow.myasustor.com;
#change to match your address
ssl_certificate /etc/letsencrypt/live/marsflow.myasustor.com/fullchain.pem; # managed by Certbot
#change to match your address
ssl_certificate_key /etc/letsencrypt/live/marsflow.myasustor.com/privkey.pem; # managed by Certbot
#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 /domoticz {
rewrite ^/domoticz/?(.*) /$1 break;
proxy_http_version 1.1;
proxy_read_timeout 90;
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-Forwarded_Proto $scheme;
proxy_set_header X-Scheme $scheme;
proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection $connection_upgrade; >>> j'ai du enlever cette ligne ça me fait une erreur
add_header X-Frame-Options SAMEORIGIN;
proxy_pass http://localhost:9982; #local ipno to domoticz
}
location /assistant {
rewrite ^/assistant/?(.*) /$1 break;
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:3030; #local ipno to dzga
proxy_read_timeout 90;
}
}