Add recommended headers
This commit is contained in:
parent
19724367df
commit
9fe8d1fd53
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue