health: add nginx main config

This commit is contained in:
Brad Stein 2026-01-14 23:55:50 -03:00
parent 35dcc5d66c
commit 88be97d860
3 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,22 @@
worker_processes auto;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout main;
error_log /dev/stderr warn;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}

View File

@ -18,6 +18,7 @@ configMapGenerator:
- name: wger-nginx-config
files:
- default.conf=config/nginx.conf
- nginx.conf=config/nginx-main.conf
- name: wger-user-sync-script
files:
- wger_user_sync.py=scripts/wger_user_sync.py

View File

@ -192,7 +192,7 @@ spec:
- nginx
args:
- -g
- daemon off; pid /tmp/nginx.pid;
- daemon off;
ports:
- name: http
containerPort: 8080
@ -204,6 +204,9 @@ spec:
- name: wger-nginx-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
- name: wger-nginx-config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: wger-static
mountPath: /wger/static
- name: wger-media