Skip to content

Commit

Permalink
cbioproxy: fix ssl warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nr23730 committed Oct 8, 2024
1 parent f5bd499 commit e6338d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/cbioproxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/buschlab/cbioportal:${RELEASE:-latest} as static

FROM docker.io/openresty/openresty:1.21.4.1-7-alpine-fat
RUN apk update && apk add git ca-certificates && rm -rf /var/cache/apk/*
RUN apk update && apk add git ca-certificates openssl && rm -rf /var/cache/apk/*
COPY --from=static /cbioportal-webapp /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf \
&& /usr/local/openresty/luajit/bin/luarocks install lua-resty-openidc
Expand Down
2 changes: 1 addition & 1 deletion services/cbioproxy/cbioportal.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ server
set $spring_port $http_x_forwarded_port;
}

#lua_ssl_trusted_certificate /usr/local/share/ca-certificates/keycloak.pem;
#lua_ssl_trusted_certificate /keycloak.pem;

location /attributes.json
{
Expand Down
2 changes: 1 addition & 1 deletion services/cbioproxy/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sleep 2

if [ -s /keycloak.pem ]; then
echo "Keycloak certificate chain present. Copying to ca store."
cp /keycloak.pem /usr/local/share/ca-certificates/keycloak.pem
openssl x509 -inform PEM -in /keycloak.pem -out /usr/local/share/ca-certificates/keycloak.pem
sed 's/#lua_ssl_trusted_certificate/lua_ssl_trusted_certificate/g' /cbioportal.conf > /etc/nginx/conf.d/cbioportal.conf
update-ca-certificates
else
Expand Down

0 comments on commit e6338d1

Please sign in to comment.