From b75446c1a394da0dc8abb9155ca6c13027ec25c3 Mon Sep 17 00:00:00 2001 From: Daan Asscheman Date: Tue, 24 Dec 2024 08:32:20 +0100 Subject: [PATCH] port numbers. --- openshift/config/13_nginx-svc.yaml | 2 +- openshift/config/14_sample-ingress.yaml | 2 +- openshift/nginx.dockerfile | 1 + openshift/openshift.dockerfile | 2 ++ openshift/vhost.conf | 4 ++-- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/openshift/config/13_nginx-svc.yaml b/openshift/config/13_nginx-svc.yaml index 0457b3e..8bf1cf6 100644 --- a/openshift/config/13_nginx-svc.yaml +++ b/openshift/config/13_nginx-svc.yaml @@ -10,5 +10,5 @@ spec: app: nginx ports: - protocol: TCP - port: 8080 + port: 80 targetPort: 8080 \ No newline at end of file diff --git a/openshift/config/14_sample-ingress.yaml b/openshift/config/14_sample-ingress.yaml index 57edc6f..7517c23 100644 --- a/openshift/config/14_sample-ingress.yaml +++ b/openshift/config/14_sample-ingress.yaml @@ -21,4 +21,4 @@ spec: service: name: nginx port: - number: 8080 \ No newline at end of file + number: 80 \ No newline at end of file diff --git a/openshift/nginx.dockerfile b/openshift/nginx.dockerfile index 03a69bc..bfd1476 100644 --- a/openshift/nginx.dockerfile +++ b/openshift/nginx.dockerfile @@ -2,6 +2,7 @@ FROM nginxinc/nginx-unprivileged:stable-alpine ADD ./openshift/vhost.conf /etc/nginx/conf.d/default.conf +EXPOSE 80 EXPOSE 8080 EXPOSE 7050 EXPOSE 5173 diff --git a/openshift/openshift.dockerfile b/openshift/openshift.dockerfile index 22862a2..00b799a 100644 --- a/openshift/openshift.dockerfile +++ b/openshift/openshift.dockerfile @@ -55,6 +55,8 @@ RUN chgrp -R 0 /var/www && \ chmod -R g=u /var/www RUN npm install + +EXPOSE 80 EXPOSE 8080 EXPOSE 9000 EXPOSE 7050 diff --git a/openshift/vhost.conf b/openshift/vhost.conf index d6f263d..45a40dc 100644 --- a/openshift/vhost.conf +++ b/openshift/vhost.conf @@ -1,6 +1,6 @@ server { - listen 8080; - listen [::]:8080; + listen 80; + listen [::]:80; server_name app.openshift.fss.uu.nl; root /var/www/public;