Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add recommended headers

Manav Rathi9fe8d1fd531d
diff --git a/infra/services/status/README.md b/infra/services/status/README.md
index d2e4b55e32..b9da80092d 100644
--- a/infra/services/status/README.md
+++ b/infra/services/status/README.md
@@ -20,7 +20,7 @@ Add the service definition and nginx configuration.
```sh
scp services/status/uptime-kuma.* <instance>:
-sudo mv uptime-kuma.service /etc/systemd/system/uptime-kuma.service
+sudo mv uptime-kuma.service /etc/systemd/system/
sudo mv uptime-kuma.nginx.conf /root/nginx/conf.d
```
diff --git a/infra/services/status/uptime-kuma.nginx.conf b/infra/services/status/uptime-kuma.nginx.conf
index 6c3b08b332..2f5b6ecc4e 100644
--- a/infra/services/status/uptime-kuma.nginx.conf
+++ b/infra/services/status/uptime-kuma.nginx.conf
@@ -15,5 +15,11 @@ server {
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;
+
+ # Recommended options from Uptime Kuma Wiki
+ # https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy#nginx
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
}
}