Skip to content

Commit a4e710a

Browse files
committed
Random
1 parent 9eb1b41 commit a4e710a

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ITKDEV_TEMPLATE=symfony-6
1919

2020
###> symfony/framework-bundle ###
2121
APP_ENV=dev
22-
APP_SECRET=22d8a60c047b96413b3337e3ddae3da9
22+
APP_SECRET=CHANGE_ME
2323
TRUSTED_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 ###
4343
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
4444
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
45-
JWT_PASSPHRASE=APP_JWT_PASSPHRASE
45+
JWT_PASSPHRASE=CHANGE_ME
4646
# Default: 1 hour
4747
JWT_TOKEN_TTL=3600
4848
# Default: 15 days

infrastructure/display-api-service/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ LABEL maintainer="ITK Dev <itkdev@mkb.aarhus.dk>"
6464

6565
ENV APP_CLIENT_PATH=/app \
6666
APP_API_PATH=/var/www/html \
67+
APP_ENV=prod \
6768
COMPOSER_VERSION=2 \
6869

6970
# OpCache

infrastructure/nginx/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ ARG GID=101
7070

7171
ENV 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

7577
WORKDIR ${APP_API_PATH}
7678

infrastructure/nginx/etc/templates/default.conf.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)