Call the API by container name from the web player

In prod every project shares infra-net, where the `api` service name
can resolve to another project's container as well.
This commit is contained in:
2026-09-24 15:06:25 +02:00
parent 7b8f3f1222
commit f2765e2e7b
+4 -1
View File
@@ -398,7 +398,10 @@ services:
AUTH_POST_LOGOUT_URI: "${PUBLIC_WEB_URL}/" AUTH_POST_LOGOUT_URI: "${PUBLIC_WEB_URL}/"
AUTH_ALLOW_INSECURE_HTTP: ${AUTH_ALLOW_INSECURE_HTTP} AUTH_ALLOW_INSECURE_HTTP: ${AUTH_ALLOW_INSECURE_HTTP}
SESSION_SECRET: ${SESSION_SECRET} SESSION_SECRET: ${SESSION_SECRET}
API_BASE_URL: http://api:5111 # The container name, not the `api` service name: in prod every project
# shares infra-net, where a generic name can resolve to another
# project's container.
API_BASE_URL: http://musify-api:5111
# Presigned PUTs are signed for the public S3 host; the container sends # Presigned PUTs are signed for the public S3 host; the container sends
# them straight to SeaweedFS instead of going back out through the edge. # them straight to SeaweedFS instead of going back out through the edge.
S3_UPLOAD_ENDPOINT: ${S3_INTERNAL_URL} S3_UPLOAD_ENDPOINT: ${S3_INTERNAL_URL}