fix nginx config

This commit is contained in:
einhornimmond 2024-02-05 14:19:44 +01:00
parent 6500aac585
commit 00d84d5c24
2 changed files with 12 additions and 4 deletions

View File

@ -56,7 +56,9 @@ server {
limit_req zone=frontend burst=40 nodelay;
limit_conn addr 40;
root $PROJECT_ROOT/frontend/
root $PROJECT_ROOT/frontend/build/;
index index.html;
try_files $uri $uri/ /index.html = 404;
access_log $GRADIDO_LOG_PATH/nginx-access.frontend.log gradido_log;
error_log $GRADIDO_LOG_PATH/nginx-error.frontend.log warn;
@ -112,7 +114,9 @@ server {
location /admin {
limit_req zone=frontend burst=30 nodelay;
limit_conn addr 40;
root $PROJECT_ROOT/admin/
root $PROJECT_ROOT/admin/build/;
index index.html;
try_files $uri $uri/ /index.html = 404;
access_log $GRADIDO_LOG_PATH/nginx-access.admin.log gradido_log;
error_log $GRADIDO_LOG_PATH/nginx-error.admin.log warn;

View File

@ -40,7 +40,9 @@ server {
location / {
limit_req zone=frontend burst=40 nodelay;
limit_conn addr 40;
root $PROJECT_ROOT/frontend/
root $PROJECT_ROOT/frontend/build/;
index index.html;
try_files $uri $uri/ /index.html = 404;
access_log $GRADIDO_LOG_PATH/nginx-access.frontend.log gradido_log;
error_log $GRADIDO_LOG_PATH/nginx-error.frontend.log warn;
@ -96,7 +98,9 @@ server {
location /admin {
limit_req zone=frontend burst=30 nodelay;
limit_conn addr 40;
root $PROJECT_ROOT/admin/
root $PROJECT_ROOT/admin/build/;
index index.html;
try_files $uri $uri/ /index.html = 404;
access_log $GRADIDO_LOG_PATH/nginx-access.admin.log gradido_log;
error_log $GRADIDO_LOG_PATH/nginx-error.admin.log warn;