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
|
- name: wger-nginx-config
|
||||||
files:
|
files:
|
||||||
- default.conf=config/nginx.conf
|
- default.conf=config/nginx.conf
|
||||||
|
- nginx.conf=config/nginx-main.conf
|
||||||
- name: wger-user-sync-script
|
- name: wger-user-sync-script
|
||||||
files:
|
files:
|
||||||
- wger_user_sync.py=scripts/wger_user_sync.py
|
- wger_user_sync.py=scripts/wger_user_sync.py
|
||||||
|
|||||||
@ -192,7 +192,7 @@ spec:
|
|||||||
- nginx
|
- nginx
|
||||||
args:
|
args:
|
||||||
- -g
|
- -g
|
||||||
- daemon off; pid /tmp/nginx.pid;
|
- daemon off;
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
@ -204,6 +204,9 @@ spec:
|
|||||||
- name: wger-nginx-config
|
- name: wger-nginx-config
|
||||||
mountPath: /etc/nginx/conf.d/default.conf
|
mountPath: /etc/nginx/conf.d/default.conf
|
||||||
subPath: default.conf
|
subPath: default.conf
|
||||||
|
- name: wger-nginx-config
|
||||||
|
mountPath: /etc/nginx/nginx.conf
|
||||||
|
subPath: nginx.conf
|
||||||
- name: wger-static
|
- name: wger-static
|
||||||
mountPath: /wger/static
|
mountPath: /wger/static
|
||||||
- name: wger-media
|
- name: wger-media
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user