Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ RUN apk add --no-cache curl
# Remove default nginx config
RUN rm /etc/nginx/conf.d/default.conf

# Copy custom nginx config
COPY nginx.conf /etc/nginx/conf.d/

# Copy built files from builder stage with correct ownership
COPY --from=builder --chown=nginx:nginx /app/dist /usr/share/nginx/html

Expand Down
3 changes: 3 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ services:
frontend:
ports:
- "80:80"
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
- ./deployment/nginx/file-storage.conf:/etc/nginx/conf.d/default.conf:ro

datadog:
environment:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ services:
app:
condition: service_healthy
ports:
- "3000:80" # Dev: host:3000, Prod: change to "80:80" for direct HTTP access
- "3000:80"
# Note: Not using user: "101:101" because tmpfs mounts need root to set permissions
# Nginx drops privileges internally to nginx user for worker processes
volumes:
- ./client/nginx.conf:/etc/nginx/conf.d/default.conf:ro
cap_drop: [ ALL ]
cap_add: [ NET_BIND_SERVICE, CHOWN, SETUID, SETGID ] # Needed for nginx to drop privileges
security_opt: [ "no-new-privileges:true" ]
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ security:
login: 5
cors:
allowed-origins:
- https://app.example.com # put your real frontend(s) here
# - https://admin.example.com
- https://managefiles.duckdns.org
allowed-headers:
- Authorization
- Content-Type
Expand Down