Files
sharing/Caddyfile
T

45 lines
849 B
Caddyfile
Raw Normal View History

2025-08-25 16:49:04 -04:00
{
2025-08-25 21:54:37 -04:00
auto_https off
2025-08-25 14:15:52 -04:00
}
2025-08-25 21:54:37 -04:00
# short domain (http-only on :8550)
http://{$SHORT_DOMAIN}:8550 {
log {
output stdout
format console
}
@shorten path /shorten
handle @shorten {
header {
Access-Control-Allow-Origin https://{$PASTE_DOMAIN}
Access-Control-Allow-Methods GET, OPTIONS
Access-Control-Allow-Headers *
Cache-Control no-store
}
reverse_proxy http://shlink-adapter:3000
}
@shortenPre method OPTIONS path /shorten
respond @shortenPre 204
# everything else → shlink ui/api
handle {
reverse_proxy http://shlink:8080
}
}
2025-08-25 17:48:21 -04:00
2025-08-25 21:54:37 -04:00
# paste domain (http-only)
http://{$PASTE_DOMAIN}:8550 {
reverse_proxy http://privatebin:8080
}
2025-08-25 17:48:21 -04:00
2025-08-25 21:54:37 -04:00
# files domain (http-only)
http://{$FILES_DOMAIN}:8550 {
reverse_proxy http://lufi:8081
2025-08-25 16:49:04 -04:00
}
2025-08-25 18:07:05 -04:00
2025-08-25 23:09:03 -04:00
http://{$HOMR_DOMAIN} {
respond "KFDJSLKFJSLKFJSLKFDJLKDS" 200
}