Add 1440.news as alias for PDS

This commit is contained in:
primal
2026-01-26 17:10:51 -05:00
parent 57804f41bf
commit efcd60214b
+7 -5
View File
@@ -11,10 +11,11 @@ services:
- proxy - proxy
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
# PDS API endpoint: pds.1440.news # PDS API endpoint: pds.1440.news and 1440.news (alias)
- "traefik.http.routers.pds-1440-news.rule=Host(`pds.1440.news`)" - "traefik.http.routers.pds-1440-news.rule=Host(`pds.1440.news`) || Host(`1440.news`)"
- "traefik.http.routers.pds-1440-news.entrypoints=https" - "traefik.http.routers.pds-1440-news.entrypoints=https"
- "traefik.http.routers.pds-1440-news.tls.certresolver=letsencrypt" - "traefik.http.routers.pds-1440-news.tls.certresolver=letsencrypt-dns"
- "traefik.http.routers.pds-1440-news.priority=10"
# Wildcard for account handles: *.1440.news (requires DNS challenge) # Wildcard for account handles: *.1440.news (requires DNS challenge)
- "traefik.http.routers.pds-1440-news-handles.rule=HostRegexp(`^.+\\.1440\\.news$$`)" - "traefik.http.routers.pds-1440-news-handles.rule=HostRegexp(`^.+\\.1440\\.news$$`)"
- "traefik.http.routers.pds-1440-news-handles.entrypoints=https" - "traefik.http.routers.pds-1440-news-handles.entrypoints=https"
@@ -23,7 +24,7 @@ services:
- "traefik.http.routers.pds-1440-news-handles.tls.domains[0].sans=*.1440.news" - "traefik.http.routers.pds-1440-news-handles.tls.domains[0].sans=*.1440.news"
- "traefik.http.routers.pds-1440-news-handles.priority=1" - "traefik.http.routers.pds-1440-news-handles.priority=1"
# HTTP to HTTPS redirect # HTTP to HTTPS redirect
- "traefik.http.routers.pds-1440-news-redirect.rule=Host(`pds.1440.news`)" - "traefik.http.routers.pds-1440-news-redirect.rule=Host(`pds.1440.news`) || Host(`1440.news`)"
- "traefik.http.routers.pds-1440-news-redirect.entrypoints=http" - "traefik.http.routers.pds-1440-news-redirect.entrypoints=http"
- "traefik.http.routers.pds-1440-news-redirect.middlewares=https-redirect" - "traefik.http.routers.pds-1440-news-redirect.middlewares=https-redirect"
- "traefik.http.routers.pds-1440-news-handles-redirect.rule=HostRegexp(`^.+\\.1440\\.news$$`)" - "traefik.http.routers.pds-1440-news-handles-redirect.rule=HostRegexp(`^.+\\.1440\\.news$$`)"
@@ -36,8 +37,9 @@ services:
# Service port # Service port
- "traefik.http.services.pds-1440-news.loadbalancer.server.port=3000" - "traefik.http.services.pds-1440-news.loadbalancer.server.port=3000"
# Local development # Local development
- "traefik.http.routers.pds-1440-news-local.rule=Host(`pds.1440.localhost`)" - "traefik.http.routers.pds-1440-news-local.rule=Host(`pds.1440.localhost`) || Host(`1440.localhost`)"
- "traefik.http.routers.pds-1440-news-local.entrypoints=http" - "traefik.http.routers.pds-1440-news-local.entrypoints=http"
- "traefik.http.routers.pds-1440-news-local.priority=10"
networks: networks:
proxy: proxy: