Refactor nginx configuration and update README
- Moved BACKEND_URL configuration to the frontend service in the README. - Added validation for the generated nginx configuration in the entrypoint script. - Removed fallback nginx configuration copy from the Dockerfile. - Adjusted nginx template to ensure proper header formatting. This improves the deployment process and clarifies configuration instructions.
This commit is contained in:
@@ -30,8 +30,6 @@ RUN apk add --no-cache gettext
|
||||
|
||||
# Copy nginx config template (will be processed at runtime)
|
||||
COPY frontend/nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
# Also copy the original as fallback
|
||||
COPY frontend/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Copy entrypoint script
|
||||
COPY frontend/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user