From b62549ad90dcba3f5576fefa5a56eabb456e98d7 Mon Sep 17 00:00:00 2001 From: oskarb Date: Sun, 31 Aug 2025 08:09:04 +0200 Subject: [PATCH 1/2] Add docker/nginx/nginx.conf --- docker/nginx/nginx.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docker/nginx/nginx.conf diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf new file mode 100644 index 0000000..418a02b --- /dev/null +++ b/docker/nginx/nginx.conf @@ -0,0 +1,21 @@ +server { + listen 80; + server_name scheduler.oskarmikael.com; + + root /var/www/html/public; + index index.php index.html; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + include fastcgi_params; + fastcgi_pass app:9000; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } + + location ~ /\.ht { + deny all; + } +} -- 2.39.5 From 808b70159691768d0634e1549420a2374e76cf20 Mon Sep 17 00:00:00 2001 From: oskarb Date: Sun, 31 Aug 2025 08:09:56 +0200 Subject: [PATCH 2/2] Update Dockerfile.prod --- Dockerfile.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index 9189ebe..5f0f476 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -65,6 +65,6 @@ RUN chown -R www-data:www-data storage bootstrap/cache FROM nginx:1.27-alpine AS nginx WORKDIR /var/www/html COPY --from=final /var/www/html/public ./public -COPY ./nginx.conf /etc/nginx/conf.d/default.conf +COPY ./docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf CMD ["php-fpm"] -- 2.39.5