From 4ab66536b650e608039c0c3a205da897cb8bd2c5 Mon Sep 17 00:00:00 2001 From: Jason McCormick Date: Fri, 6 Nov 2026 19:10:44 -0500 Subject: new --- deploy/nginx-location.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 deploy/nginx-location.conf (limited to 'deploy/nginx-location.conf') 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:///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; +} -- cgit v1.2.3