mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-04-18 22:29:44 +00:00
102 lines
2.6 KiB
Caddyfile
102 lines
2.6 KiB
Caddyfile
{
|
|
admin off
|
|
}
|
|
|
|
############## gitea ##############
|
|
{$GITEA_DOMAIN} {
|
|
tls /etc/ssl/custom/{$GITEA_CRT} /etc/ssl/custom/{$GITEA_KEY}
|
|
|
|
request_body {
|
|
max_size 512MB
|
|
}
|
|
|
|
reverse_proxy http://gitea:3000 {
|
|
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 -CF-*
|
|
}
|
|
}
|
|
|
|
############## slash ##############
|
|
{$SLASH_DOMAIN} {
|
|
tls /etc/ssl/custom/{$SLASH_CRT} /etc/ssl/custom/{$SLASH_KEY}
|
|
|
|
request_body {
|
|
max_size 10MB
|
|
}
|
|
|
|
reverse_proxy http://slash:5231 {
|
|
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 -CF-*
|
|
}
|
|
}
|
|
|
|
############## memos ##############
|
|
{$MEMOS_DOMAIN} {
|
|
tls /etc/ssl/custom/{$MEMOS_CRT} /etc/ssl/custom/{$MEMOS_KEY}
|
|
|
|
request_body {
|
|
max_size 128MB
|
|
}
|
|
|
|
reverse_proxy http://memos:5230 {
|
|
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 -CF-*
|
|
}
|
|
}
|
|
|
|
############## wg-easy ##############
|
|
{$WG_EASY_DOMAIN} {
|
|
tls /etc/ssl/custom/{$WG_EASY_CRT} /etc/ssl/custom/{$WG_EASY_KEY}
|
|
|
|
request_body {
|
|
max_size 10MB
|
|
}
|
|
|
|
reverse_proxy http://wg-easy:51821 {
|
|
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 -CF-*
|
|
}
|
|
}
|
|
|
|
############## vaultwarden ##############
|
|
{$VAULTWARDEN_DOMAIN} {
|
|
tls /etc/ssl/custom/{$VAULTWARDEN_CRT} /etc/ssl/custom/{$VAULTWARDEN_KEY}
|
|
|
|
request_body {
|
|
max_size 128MB
|
|
}
|
|
|
|
reverse_proxy http://vaultwarden {
|
|
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 -CF-*
|
|
}
|
|
}
|
|
|
|
############## sftpgo ##############
|
|
{$SFTPGO_DOMAIN} {
|
|
request_body {
|
|
max_size 8120MB
|
|
}
|
|
|
|
reverse_proxy http://sftpgo:8080 {
|
|
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 -CF-*
|
|
}
|
|
}
|
|
|
|
|
|
|
|
import Caddyfile.private
|