fix(k8s): naming variables correctly for nginx container
This commit is contained in:
parent
3f098b691a
commit
8af5526c7a
|
@ -40,15 +40,15 @@ spec:
|
||||||
name: myapplication-nginx
|
name: myapplication-nginx
|
||||||
args: ["/usr/sbin/nginx"]
|
args: ["/usr/sbin/nginx"]
|
||||||
env:
|
env:
|
||||||
- name: NGINX_myapplication_UPSTREAM_BACKEND_SERVER
|
- name: NGINX_APP_UPSTREAM_BACKEND_SERVER
|
||||||
value: 127.0.0.1:9000
|
value: 127.0.0.1:9000
|
||||||
- name: NGINX_myapplication_ROOT
|
- name: NGINX_APP_ROOT
|
||||||
value: "/public"
|
value: "/public"
|
||||||
- name: NGINX_myapplication_PHP_INDEX
|
- name: NGINX_APP_PHP_INDEX
|
||||||
value: "/index.php"
|
value: "/index.php"
|
||||||
- name: NGINX_ERROR_LOG_LEVEL
|
- name: NGINX_ERROR_LOG_LEVEL
|
||||||
value: "warn"
|
value: "warn"
|
||||||
- name: NGINX_myapplication_PHP_NON_FILE_PATTERN
|
- name: NGINX_APP_PHP_NON_FILE_PATTERN
|
||||||
value: "^/index\\.php(/|$)"
|
value: "^/index\\.php(/|$)"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
|
@ -18,4 +18,4 @@ spec:
|
||||||
service:
|
service:
|
||||||
name: myapplication
|
name: myapplication
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 80
|
||||||
|
|
Loading…
Reference in New Issue