Update Traefik router rules in swarm-compose.yml to use a fixed hostname 'sf.lab' for Seafile and Seadoc services, enhancing routing consistency.

This commit is contained in:
2025-12-21 21:46:39 -05:00
parent 91cf93a8a1
commit a4b69e2eaa

View File

@@ -162,7 +162,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=public"
- "traefik.http.routers.seafile.rule=Host(`${SEAFILE_SERVER_HOSTNAME}`)"
- "traefik.http.routers.seafile.rule=Host(`sf.lab`)"
- "traefik.http.routers.seafile.entrypoints=web"
- "traefik.http.services.seafile.loadbalancer.server.port=80"
# Ensure Seadoc path routers win
@@ -196,7 +196,7 @@ services:
- "traefik.enable=true"
- "traefik.docker.network=public"
# Route Seadoc endpoints on the same host:
- "traefik.http.routers.seadoc.rule=Host(`${SEAFILE_SERVER_HOSTNAME}`) && (PathPrefix(`/socket.io`) || PathPrefix(`/sdoc-server`))"
- "traefik.http.routers.seadoc.rule=Host(`sf.lab`) && (PathPrefix(`/socket.io`) || PathPrefix(`/sdoc-server`))"
- "traefik.http.routers.seadoc.entrypoints=web"
- "traefik.http.routers.seadoc.priority=100"
- "traefik.http.services.seadoc.loadbalancer.server.port=80"