Files
solar-relay/deploy/nginx-solar-relay.conf
franzz ec75ac15b0
Deploy Solar Relay / deploy (push) Failing after 4s
Initial commit
2026-11-01 22:33:32 +01:00

17 lines
572 B
Plaintext

# Include these locations in the existing HTTPS server block for rpioffice.nest.lutran.ch.
# The trailing slash on proxy_pass removes /solar-relay/ before forwarding.
location = /solar-relay {
return 308 /solar-relay/;
}
location ^~ /solar-relay/ {
proxy_pass http://127.0.0.1:8765/;
proxy_http_version 1.1;
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_connect_timeout 3s;
proxy_read_timeout 15s;
}