164 lines
3.6 KiB
Caddyfile
164 lines
3.6 KiB
Caddyfile
# ==============================================
|
|
# Gatoflix Media Center - Caddy Configuration
|
|
# CONFIGURAÇÃO PARA REDE LOCAL
|
|
# ==============================================
|
|
|
|
# Global options
|
|
# {
|
|
# # Para rede local, desabilitar ACME (Let's Encrypt)
|
|
# # Caddy gerará certificados auto-assinados automaticamente
|
|
# auto_https disable_redirects
|
|
#
|
|
# # OU use certificados internos do Caddy (recomendado)
|
|
# # Descomente a linha abaixo para usar PKI interno do Caddy
|
|
# # local_certs
|
|
# }
|
|
|
|
# ==============================================
|
|
# Media Server - Plex
|
|
# ==============================================
|
|
# plex.{$DOMAIN} {
|
|
# # TLS interno (certificado auto-assinado)
|
|
# tls internal
|
|
#
|
|
# reverse_proxy plex:32400
|
|
#
|
|
# # Headers específicos para Plex
|
|
# header {
|
|
# X-Content-Type-Options "nosniff"
|
|
# X-Frame-Options "SAMEORIGIN"
|
|
# Referrer-Policy "no-referrer-when-downgrade"
|
|
# }
|
|
#
|
|
# # Logs
|
|
# log {
|
|
# output file /var/log/caddy/plex.log
|
|
# format json
|
|
# }
|
|
# }
|
|
|
|
# ==============================================
|
|
# Download Manager - Transmission
|
|
# ==============================================
|
|
# transmission.{$DOMAIN} {
|
|
# tls internal
|
|
#
|
|
# reverse_proxy transmission:9091
|
|
#
|
|
# header {
|
|
# X-Content-Type-Options "nosniff"
|
|
# X-Frame-Options "DENY"
|
|
# }
|
|
#
|
|
# log {
|
|
# output file /var/log/caddy/transmission.log
|
|
# format json
|
|
# }
|
|
# }
|
|
#
|
|
# # ==============================================
|
|
# # Indexer - Jackett
|
|
# # ==============================================
|
|
# jackett.{$DOMAIN} {
|
|
# tls internal
|
|
#
|
|
# reverse_proxy jackett:9117
|
|
#
|
|
# header {
|
|
# X-Content-Type-Options "nosniff"
|
|
# X-Frame-Options "DENY"
|
|
# }
|
|
#
|
|
# log {
|
|
# output file /var/log/caddy/jackett.log
|
|
# format json
|
|
# }
|
|
# }
|
|
#
|
|
# # ==============================================
|
|
# # TV Shows Manager - Sonarr
|
|
# # ==============================================
|
|
# sonarr.{$DOMAIN} {
|
|
# tls internal
|
|
#
|
|
# reverse_proxy sonarr:8989
|
|
#
|
|
# header {
|
|
# X-Content-Type-Options "nosniff"
|
|
# X-Frame-Options "DENY"
|
|
# }
|
|
#
|
|
# log {
|
|
# output file /var/log/caddy/sonarr.log
|
|
# format json
|
|
# }
|
|
# }
|
|
#
|
|
# # ==============================================
|
|
# # Movies Manager - Radarr
|
|
# # ==============================================
|
|
# radarr.{$DOMAIN} {
|
|
# tls internal
|
|
#
|
|
# reverse_proxy radarr:7878
|
|
#
|
|
# header {
|
|
# X-Content-Type-Options "nosniff"
|
|
# X-Frame-Options "DENY"
|
|
# }
|
|
#
|
|
# log {
|
|
# output file /var/log/caddy/radarr.log
|
|
# format json
|
|
# }
|
|
# }
|
|
#
|
|
# # ==============================================
|
|
# # Subtitles Manager - Bazarr
|
|
# # ==============================================
|
|
# bazarr.{$DOMAIN} {
|
|
# tls internal
|
|
#
|
|
# reverse_proxy bazarr:6767
|
|
#
|
|
# header {
|
|
# X-Content-Type-Options "nosniff"
|
|
# X-Frame-Options "DENY"
|
|
# }
|
|
#
|
|
# log {
|
|
# output file /var/log/caddy/bazarr.log
|
|
# format json
|
|
# }
|
|
# }
|
|
|
|
# ==============================================
|
|
# ALTERNATIVA: SEM HTTPS (HTTP apenas)
|
|
# ==============================================
|
|
# Se preferir não usar HTTPS em rede local, descomente abaixo
|
|
# e comente todos os blocos acima
|
|
#
|
|
http://plex.{$DOMAIN} {
|
|
reverse_proxy plex:32400
|
|
}
|
|
|
|
http://transmission.{$DOMAIN} {
|
|
reverse_proxy transmission:9091
|
|
}
|
|
|
|
http://jackett.{$DOMAIN} {
|
|
reverse_proxy jackett:9117
|
|
}
|
|
|
|
http://sonarr.{$DOMAIN} {
|
|
reverse_proxy sonarr:8989
|
|
}
|
|
|
|
http://radarr.{$DOMAIN} {
|
|
reverse_proxy radarr:7878
|
|
}
|
|
|
|
http://bazarr.{$DOMAIN} {
|
|
reverse_proxy bazarr:6767
|
|
}
|