summaryrefslogtreecommitdiff
path: root/deploy/nginx-location.conf
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/nginx-location.conf')
-rw-r--r--deploy/nginx-location.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/nginx-location.conf b/deploy/nginx-location.conf
new file mode 100644
index 0000000..b198d4e
--- /dev/null
+++ b/deploy/nginx-location.conf
@@ -0,0 +1,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;
+}