Ich hab's jetzt mal so versucht.
Das bringt jedoch keine Änderung.
Wenn ich
das stehen lasse, geht auch Alexa nicht mehr.
Wo müsste man den smarthome io.treiber anpassen?
Code:
upstream php {
server localhost:9090;
}
server {
listen 80 default_server;
server_name xyz.spdns.eu;
satisfy any;
allow 192.168.1.0/24;
deny all;
auth_basic "SmartVisu Anmeldung";
auth_basic_user_file /etc/nginx/htpasswd.smartvisu;
root /var/www/html;
index index.php index.html index.htm;
location / {
if ($http_upgrade = websocket) {
proxy_pass http://192.168.1.13:2424;
}
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9090;
fastcgi_read_timeout 300;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /.well-known {
allow all;
}
}
# Alexa
server {
listen 443 ssl default_server;
server_name xyz.spdns.eu;
access_log /var/log/nginx/alexa.log combined;
include /etc/nginx/include.d/common;
location / {
if ($http_upgrade = websocket) {
proxy_pass http://192.168.1.13:2424;
}
# if ($http_upgrade != websocket) {
# return 403;
# }
auth_basic "Alexa";
auth_basic_user_file /etc/nginx/htpasswd.alexa;
proxy_pass http://192.168.1.13:9000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Wenn ich
Code:
# if ($http_upgrade != websocket) {
# return 403;
# }
Wo müsste man den smarthome io.treiber anpassen?



Netzwerktechnisch hab ich so gut wie 0 Ahnung...
die 2 ausdrücke im ersten block sind die ssl serverzertifikate für meine domain (daher letsencrypt)
Kommentar