health: add nginx main config
This commit is contained in:
parent
35dcc5d66c
commit
88be97d860
22
services/health/config/nginx-main.conf
Normal file
22
services/health/config/nginx-main.conf
Normal 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;
|
||||
}
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user