diff --git a/docker-compose.yml b/docker-compose.yml index 830c62d..b72136f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: DB_USER: dba_1440_news DB_PASSWORD_FILE: /run/secrets/db_password DB_NAME: db_1440_news - OAUTH_BASE_URL: https://app.1440.news + OAUTH_BASE_URL: https://dashboard.1440.news secrets: - db_password networks: @@ -23,24 +23,18 @@ services: - atproto labels: - "traefik.enable=true" - # Production: HTTPS with Let's Encrypt for app.1440.news - - "traefik.http.routers.dashboard-1440.rule=Host(`app.1440.news`)" + # Production: HTTPS with Let's Encrypt for dashboard.1440.news + - "traefik.http.routers.dashboard-1440.rule=Host(`dashboard.1440.news`)" - "traefik.http.routers.dashboard-1440.entrypoints=https" - "traefik.http.routers.dashboard-1440.tls.certresolver=letsencrypt-dns" - # Production: HTTPS for 1440.news root (accounts directory) - lower priority than PDS API paths - - "traefik.http.routers.root-1440.rule=Host(`1440.news`)" - - "traefik.http.routers.root-1440.entrypoints=https" - - "traefik.http.routers.root-1440.tls.certresolver=letsencrypt-dns" - - "traefik.http.routers.root-1440.priority=10" # Production: HTTP to HTTPS redirect - - "traefik.http.routers.dashboard-1440-redirect.rule=Host(`app.1440.news`) || Host(`1440.news`)" + - "traefik.http.routers.dashboard-1440-redirect.rule=Host(`dashboard.1440.news`)" - "traefik.http.routers.dashboard-1440-redirect.entrypoints=http" - "traefik.http.routers.dashboard-1440-redirect.middlewares=https-redirect" - - "traefik.http.routers.dashboard-1440-redirect.priority=10" - "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https" - "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true" # Local development - - "traefik.http.routers.dashboard-1440-local.rule=Host(`app.1440.localhost`)" + - "traefik.http.routers.dashboard-1440-local.rule=Host(`dashboard.1440.localhost`)" - "traefik.http.routers.dashboard-1440-local.entrypoints=http" # Shared service - "traefik.http.services.dashboard-1440.loadbalancer.server.port=4321" diff --git a/routes.go b/routes.go index 9b1b5a2..e641161 100644 --- a/routes.go +++ b/routes.go @@ -13,7 +13,7 @@ func (d *Dashboard) StartServer(addr string) error { if baseURL == "" { // Default based on whether we're in production if strings.Contains(addr, "0.0.0.0") { - baseURL = "https://app.1440.news" + baseURL = "https://dashboard.1440.news" } else { baseURL = "http://" + addr }