rawr
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -36,14 +36,17 @@ COPY --from=builder /app/backend ./backend
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Set runtime environment variables
|
||||
# Set runtime environment variables - these will be overridden by .env.tor when running in Tor mode
|
||||
ENV NODE_ENV=production
|
||||
# Use relative URLs for maximum Tor compatibility
|
||||
ENV NEXT_PUBLIC_API_URL=/api
|
||||
# Force server to use internal URLs (no localhost references)
|
||||
ENV SERVER_API_URL=http://localhost:3000/api
|
||||
# Disable HTTPS for internal container communication
|
||||
ENV USE_HTTPS=false
|
||||
# Ensure internal API calls for server components go to the right port
|
||||
# Running in Tor mode
|
||||
ENV NEXT_PUBLIC_TOR_MODE=true
|
||||
# Use relative URLs for server components - critical for Tor
|
||||
ENV SERVER_API_URL=/api
|
||||
# Disable HTTPS for onion services (they're already encrypted)
|
||||
ENV USE_HTTPS=false
|
||||
# Set port for internal API calls
|
||||
ENV INTERNAL_API_PORT=3000
|
||||
# Disable telemetry
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
Reference in New Issue
Block a user