From f5bcdcddeb17cc1d6266fb8dd71def92443aec4a Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Tue, 7 Sep 2021 14:20:08 +0200 Subject: [PATCH] refactor: Removed TOMCAT_REVERSEPROXY variables DEPLOYMENT_CONTEXT and SHARE_URL should be enough --- Dockerfile | 4 +--- docs/deployment/docker-deployment.md | 2 -- src/docker/server.reverseproxy.patch | 26 ------------------------ src/docker/start.sh | 30 ---------------------------- 4 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 src/docker/server.reverseproxy.patch diff --git a/Dockerfile b/Dockerfile index 8bca7ae6..d3fc6dff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,12 +20,10 @@ RUN ["rm", "-fr", "/usr/local/tomcat/webapps"] COPY --from=extract /connector/extracted/ /usr/local/tomcat/webapps/ROOT/ # Adding fontconfig and libfreetype6 for rendering the BK Export, cf. https://stackoverflow.com/questions/55454036 -# Patch is needed for reverse proxy configuration -RUN apt-get update && apt-get install -y fontconfig libfreetype6 patch && \ +RUN apt-get update && apt-get install -y fontconfig libfreetype6 && \ rm -rf /var/lib/apt/lists/* ADD src/docker/context.xml ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml -ADD src/docker/server.reverseproxy.patch ${CATALINA_HOME}/conf/server.reverseproxy.patch ADD src/docker/samply_common_urls.xml ${CATALINA_HOME}/conf/${PROJECT}_common_urls.xml ADD src/docker/samply_common_operator.xml ${CATALINA_HOME}/conf/${PROJECT}_common_operator.xml diff --git a/docs/deployment/docker-deployment.md b/docs/deployment/docker-deployment.md index 5d301cba..c78bed6e 100644 --- a/docs/deployment/docker-deployment.md +++ b/docs/deployment/docker-deployment.md @@ -79,8 +79,6 @@ If postgres connection errors occur, try your ip for POSTGRES_HOST. For all Envi | feature_DKTK_CENTRAL_SEARCH | false | Feature toggle for the DKTK central search | | feature_NNGM_CTS | false | Feature toggle for the NNGM CTS | | CATALINA_OPTS | | JVM options | -| TOMCAT_REVERSEPROXY_FQDN | | The FQDN of share-client then run behind a reverse proxy. See [Tomcat Connector](https://tomcat.apache.org/tomcat-8.5-doc/config/http.html) "proxyName" for more information.| -| TOMCAT_REVERSEPROXY_SSL | | Whether the reverse proxy is running SSL or not. Set either to true or false. Automatically configures [Tomcat Connector](https://tomcat.apache.org/tomcat-8.5-doc/config/http.html) "proxyPort", "scheme" and "secure".| | DEPLOYMENT_CONTEXT | | The subpath of the bridgehead installation. Normally bridgehead will be deployed to ROOT, but with this variable you can change it for example to "connector". It is not possible to pass multiple subdirectories like "connector/samply".| *necessary diff --git a/src/docker/server.reverseproxy.patch b/src/docker/server.reverseproxy.patch deleted file mode 100644 index ca68e3b3..00000000 --- a/src/docker/server.reverseproxy.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- tomcat/config/server.xml 2020-04-24 12:45:09.996222000 +0200 -+++ tomcat/config/server.docker.xml 2020-04-24 12:43:55.362172600 +0200 -@@ -68,7 +68,11 @@ - --> - -+ redirectPort="8443" -+ proxyName="{tomcat_reverseproxy_fqdn}" -+ proxyPort="{tomcat_reverseproxy_port}" -+ scheme="{tomcat_reverseproxy_scheme}" -+ secure="{tomcat_reverseproxy_ssl}" /> - -