# Traefik (file provider) — เปิดอ่านสาธารณะเฉพาะไฟล์ของ AlterFlixHub # เหตุผล: host storage.hobbypj.com ถูกบังคับ Basic auth ทั้ง host (middleware filer-auth) # เว็บ public โหลดรูปไม่ได้ (401) → เปิดเฉพาะ prefix นี้ ไม่แตะ path อื่น # service ใช้ตัวเดียวกับ storage-hobbypj.yml (seaweed-filer-service) http: routers: storage-alterflixhub-media-router: rule: Host(`storage.hobbypj.com`) && PathPrefix(`/hobbypj/alterflixhub/`) service: seaweed-filer-service entryPoints: - websecure priority: 300 middlewares: - alterflixhub-media-cors tls: certResolver: letsencrypt storage-alterflixhub-media-http-router: rule: Host(`storage.hobbypj.com`) && PathPrefix(`/hobbypj/alterflixhub/`) service: seaweed-filer-service entryPoints: - web priority: 300 middlewares: - alterflixhub-media-cors middlewares: alterflixhub-media-cors: headers: accessControlAllowOriginList: - "*" accessControlAllowMethods: - GET - HEAD - OPTIONS accessControlMaxAge: 86400 addVaryHeader: true