Skip to content

Commit

Permalink
Update nginx.conf to be compatible with nginx imagestreams on OCP 4.6…
Browse files Browse the repository at this point in the history
… + (#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
  • Loading branch information
fmenesesg authored Apr 25, 2021
1 parent 5b98095 commit 15dedb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion basic-nginx/.openshift/builds/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ parameters:
- description: Image stream tag for the image you'd like to use to build the application
name: IMAGE_STREAM_TAG_NAME
required: true
value: nginx:1.14
value: nginx:1.16-el8
10 changes: 5 additions & 5 deletions basic-nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

worker_processes auto;
error_log stderr;
pid /var/opt/rh/rh-nginx114/run/nginx/nginx.pid;
pid /run/nginx.pid;

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

events {
worker_connections 1024;
Expand All @@ -25,7 +25,7 @@ http {
keepalive_timeout 65;
types_hash_max_size 2048;

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

# Load modular configuration files from the /etc/nginx/conf.d directory.
Expand Down Expand Up @@ -69,4 +69,4 @@ http {
location = /50x.html {
}
}
}
}

0 comments on commit 15dedb6

Please sign in to comment.