Skip to content

Commit

Permalink
fixup! feat: Enable ssl in status component (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixhub committed May 6, 2024
1 parent e9f5a8c commit 1df8b1c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion catalog/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ status:
name: # default use chart name + '-status'
image:
#override:
tag: v0.0.2
tag: v0.0.3
repository: quay.io/redhat-gpte/babylon-catalog-status
pullPolicy: IfNotPresent
replicaCount: 1
Expand Down
9 changes: 5 additions & 4 deletions catalog/status/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ FROM registry.access.redhat.com/ubi9/nginx-120
# and set permissions so that the container runs without root access
USER root
WORKDIR /opt/app-root/src/
COPY nginx-default-cfg/*.conf "${NGINX_DEFAULT_CONF_PATH}"
COPY *.html /opt/app-root/src/
COPY *.css /opt/app-root/src/
COPY *.js /opt/app-root/src/
ADD nginx-default-cfg/nginx.conf "${NGINX_CONFIGURATION_PATH}"
ADD nginx-default-cfg/redirect.conf "${NGINX_DEFAULT_CONF_PATH}"
ADD *.html /opt/app-root/src/
ADD *.css /opt/app-root/src/
ADD *.js /opt/app-root/src/
COPY assets /opt/app-root/src/assets
COPY interfaces /opt/app-root/src/interfaces

Expand Down
10 changes: 10 additions & 0 deletions catalog/status/nginx-default-cfg/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 8080;
listen 443 ssl;
ssl_certificate_key /etc/tls/private/tls.key;
ssl_certificate /etc/tls/private/tls.crt;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
}
10 changes: 0 additions & 10 deletions catalog/status/nginx-default-cfg/redirect.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
server {
listen 8080;
listen 443 ssl;
ssl_certificate_key /etc/tls/private/tls.key;
ssl_certificate /etc/tls/private/tls.crt;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
}
location ~* \.(?:css|js)$ {
try_files $uri =404;
access_log off;
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ catalog:
memory: "256Mi"
status:
image:
tag: v0.0.2
tag: v0.0.3
repository: quay.io/redhat-gpte/babylon-catalog-status
pullPolicy: IfNotPresent
replicaCount: 1
Expand Down

0 comments on commit 1df8b1c

Please sign in to comment.