File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ ITKDEV_TEMPLATE=symfony-6
1919
2020# ##> symfony/framework-bundle ###
2121APP_ENV = dev
22- APP_SECRET = 22d8a60c047b96413b3337e3ddae3da9
22+ APP_SECRET = CHANGE_ME
2323TRUSTED_PROXIES = 127.0.0.1,REMOTE_ADDR
2424# ##< symfony/framework-bundle ###
2525
@@ -42,7 +42,7 @@ CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
4242# ##> lexik/jwt-authentication-bundle ###
4343JWT_SECRET_KEY = %kernel.project_dir%/config/jwt/private.pem
4444JWT_PUBLIC_KEY = %kernel.project_dir%/config/jwt/public.pem
45- JWT_PASSPHRASE = APP_JWT_PASSPHRASE
45+ JWT_PASSPHRASE = CHANGE_ME
4646# Default: 1 hour
4747JWT_TOKEN_TTL = 3600
4848# Default: 15 days
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ LABEL maintainer="ITK Dev <itkdev@mkb.aarhus.dk>"
6464
6565ENV APP_CLIENT_PATH=/app \
6666 APP_API_PATH=/var/www/html \
67+ APP_ENV=prod \
6768 COMPOSER_VERSION=2 \
6869
6970 # OpCache
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ ARG GID=101
7070
7171ENV APP_CLIENT_PATH=/app \
7272 APP_API_PATH=/var/www/html \
73- NGINX_PORT=8080
73+ NGINX_PORT=8080 \
74+ NGINX_SET_REAL_IP_FROM=172.17.0.0/16 \
75+ NGINX_MAX_BODY_SIZE=10m
7476
7577WORKDIR ${APP_API_PATH}
7678
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ server {
2727 add_header Referrer-Policy "strict-origin-when-cross-origin" always;
2828
2929 # Real IP from reverse proxy
30- set_real_ip_from 172.16.0.0/16;
3130 set_real_ip_from ${NGINX_SET_REAL_IP_FROM};
3231 real_ip_recursive on;
3332 real_ip_header X-Forwarded-For;
You can’t perform that action at this time.
0 commit comments