mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-09-03 17:53:33 +00:00
Add uptime kuma
This commit is contained in:
@@ -46,3 +46,7 @@ IMMICH_DOMAIN=
|
||||
IMMICH_CRT=
|
||||
IMMICH_KEY=
|
||||
|
||||
############# Uptime Kuma #############
|
||||
UPTIME_KUMA_DOMAIN=
|
||||
UPTIME_KUMA_CRT=
|
||||
UPTIME_KUMA_KEY=
|
||||
|
@@ -171,6 +171,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
############## uptime-kuma ##############
|
||||
{$UPTIME_KUMA_DOMAIN} {
|
||||
tls /etc/ssl/custom/{$UPTIME_KUMA_CRT} /etc/ssl/custom/{$UPTIME_KUMA_KEY}
|
||||
|
||||
request_body {
|
||||
max_size 1024MB
|
||||
}
|
||||
|
||||
reverse_proxy http://uptime_kuma:3001 {
|
||||
header_up X-Real-IP {http.request.header.Cf-Connecting-Ip}
|
||||
header_up X-Forwarded-For {http.request.header.Cf-Connecting-Ip}
|
||||
header_up X-Country-Code {http.request.header.Cf-Ipcountry}
|
||||
header_up X-Forwarded-Proto {http.request.scheme}
|
||||
header_up Host {http.request.host}
|
||||
header_up -CF-*
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
import Caddyfile.private
|
||||
|
Reference in New Issue
Block a user