# 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; }