static and media url fix 3

This commit is contained in:
javad committed 2026-09-11 13:32:31 +03:30
1 parent 5e16dee19e
commit d9cf68ba7c
3 files changed
+31 -7

No files matched your search

+9 -5
View File
@@ -45,11 +45,15 @@ def test_nginx_serves_assets_without_proxying_django():
assert "media_data:/app/media:ro" in compose
assert "notification-worker:" in compose
assert " db:" not in compose
# Normal Git-based Coolify applications generate proxy routes from the
# service Domains fields. Hand-maintained Traefik routers belong to Raw
# Compose deployments and must not compete with Coolify's generated routes.
assert "traefik.http.routers" not in compose
assert "traefik.docker.network" not in compose
# Coolify owns Host/PathPrefix/TLS generation. The Compose file only pins
# the generated nginx routers to a high-priority port-80 service so web's
# catch-all route cannot capture static/media traffic.
assert ".rule=Host(" not in compose
assert "customer-ticket-assets-${COOLIFY_RESOURCE_UUID:?}" in compose
assert "traefik.docker.network=${COOLIFY_RESOURCE_UUID:?}" in compose
assert compose.count(".priority=10000") == 6
assert compose.count(".service=customer-ticket-assets-${COOLIFY_RESOURCE_UUID:?}") == 6
assert ".loadbalancer.server.port=80" in compose
assert "Set MEDIA_SIGNING_SECRET in Coolify" not in compose