Files

24 lines
796 B
YAML

# Coolify's Traefik reads every file in /data/coolify/proxy/dynamic/ (watch=true), so copying
# this there routes idiotmaxxing.com/airplay to the airplay-web service on the host.
http:
routers:
airplay-http:
entryPoints: [http]
rule: '(Host(`idiotmaxxing.com`) || Host(`www.idiotmaxxing.com`)) && PathPrefix(`/airplay`)'
priority: 1000
middlewares: [redirect-to-https]
service: airplay
airplay-https:
entryPoints: [https]
rule: '(Host(`idiotmaxxing.com`) || Host(`www.idiotmaxxing.com`)) && PathPrefix(`/airplay`)'
priority: 1000
middlewares: [gzip]
service: airplay
tls:
certresolver: letsencrypt
services:
airplay:
loadBalancer:
servers:
- url: 'http://host.docker.internal:8790'