Updated Webserver Reverse Proxy (markdown)

Louis Lam 2021-07-31 18:12:40 +08:00
parent 1917aa77c0
commit c307908115

@ -1,6 +1,8 @@
In order to to expose uptime-kuma to the web securely, it is recommended to proxy it behind a traditional webserver such as nginx or Apache. Below are some example configurations that you could use.
In order to to expose Uptime Kuma to the web securely, it is recommended to proxy it behind a traditional webserver such as nginx or Apache. Below are some example configurations that you could use.
### Nginx
Unlikely other web apps, Uptime Kuma is based on WebSocket. You need two more header "Upgrade" and "Connection" in order to reverse proxy WebSocket.
# Nginx
With SSL:
```nginx
@ -36,7 +38,7 @@ server {
}
```
### Apache
# Apache
With SSL:
```apache
<VirtualHost *:443>
@ -68,7 +70,7 @@ Without SSL:
</VirtualHost>
```
### Caddy
# Caddy
```nginx
subdomain.domain.com {
@ -76,7 +78,11 @@ subdomain.domain.com {
}
```
### SSL/HTTPS
# Synology Builtin Reverse Proxy
https://mlohr.com/websockets-for-synology-dsm/
# SSL/HTTPS
It is recommended to use SSL(HTTPS) with your web-server to avoid MiTM attacks when on a public network. If using caddy these certificates will be auto-generated by caddy and will keep them updated.