Run production frontend Nginx unprivileged under dropped caps
This commit is contained in:
@@ -141,8 +141,9 @@ Recommended LIVE pattern:
|
||||
- Frontend no longer consumes `VITE_API_TOKEN`.
|
||||
- Frontend image target is environment-driven:
|
||||
- `APP_ENV=development` builds the `development` target and runs Vite dev server
|
||||
- `APP_ENV=production` builds the `production` target and serves static assets through Nginx
|
||||
- `APP_ENV=production` builds the `production` target and serves static assets through unprivileged Nginx
|
||||
- Frontend Docker targets are selected from `APP_ENV`, so use `development` or `production` values.
|
||||
- Production frontend Nginx uses non-root runtime plus `/tmp` temp-path configuration so it can run with container capability dropping enabled.
|
||||
- Vite dev server host allowlist uses the union of:
|
||||
- hostnames extracted from `CORS_ORIGINS`
|
||||
- optional explicit hostnames from `VITE_ALLOWED_HOSTS`
|
||||
|
||||
Reference in New Issue
Block a user