Commit
·
f002194
1
Parent(s):
f780c25
dynamically set NEXTAUTH_URL
Browse files
docker-entrypoint-wrapper.sh
CHANGED
@@ -46,5 +46,10 @@ done
|
|
46 |
# Update DATABASE_URL to use TCP connection instead of Unix socket
|
47 |
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
# Run the original entrypoint script
|
50 |
./web/entrypoint.sh node ./web/server.js --keepAliveTimeout 110000
|
|
|
46 |
# Update DATABASE_URL to use TCP connection instead of Unix socket
|
47 |
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
|
48 |
|
49 |
+
# Set NEXTAUTH_URL based on SPACE_ID if available
|
50 |
+
if [ -n "$SPACE_HOST" ]; then
|
51 |
+
export NEXTAUTH_URL="https://${SPACE_HOST}"
|
52 |
+
fi
|
53 |
+
|
54 |
# Run the original entrypoint script
|
55 |
./web/entrypoint.sh node ./web/server.js --keepAliveTimeout 110000
|