Skip to content

Commit 15dedb6

Browse files
authored
Update nginx.conf to be compatible with nginx imagestreams on OCP 4.6 + (#161)
* Update nginx.conf to be compatible with nginx-1.16 * Update template.yaml to use nginx:1.18-ubi8 imagestream * Change imagestream version to nginx:1.16-el8
1 parent 5b98095 commit 15dedb6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

basic-nginx/.openshift/builds/template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ parameters:
126126
- description: Image stream tag for the image you'd like to use to build the application
127127
name: IMAGE_STREAM_TAG_NAME
128128
required: true
129-
value: nginx:1.14
129+
value: nginx:1.16-el8

basic-nginx/nginx.conf

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
worker_processes auto;
77
error_log stderr;
8-
pid /var/opt/rh/rh-nginx114/run/nginx/nginx.pid;
8+
pid /run/nginx.pid;
99

10-
# Load dynamic modules. See /opt/rh/rh-nginx114/root/usr/share/doc/README.dynamic.
11-
include /opt/rh/rh-nginx114/root/usr/share/nginx/modules/*.conf;
10+
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
11+
include /usr/share/nginx/modules/*.conf;
1212

1313
events {
1414
worker_connections 1024;
@@ -25,7 +25,7 @@ http {
2525
keepalive_timeout 65;
2626
types_hash_max_size 2048;
2727

28-
include /etc/opt/rh/rh-nginx114/nginx/mime.types;
28+
include /etc/nginx/mime.types;
2929
default_type application/octet-stream;
3030

3131
# Load modular configuration files from the /etc/nginx/conf.d directory.
@@ -69,4 +69,4 @@ http {
6969
location = /50x.html {
7070
}
7171
}
72-
}
72+
}

0 commit comments

Comments
 (0)