blob: b198d4e88022f63e02bb1009a0a53cb732044699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Example: serve the dashboard at https://<host>/clock/
# The page uses relative URLs, so any sub-path works.
location /clock/ {
proxy_pass http://yttrium.mfamily.org:8473/; # or 127.0.0.1:8473 if nginx runs on yttrium
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Server-Sent Events: no buffering, long-lived connection
proxy_set_header Connection "";
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 1h;
}
|