From 698e5c7d202665d605b61a22610104bda640dcb0 Mon Sep 17 00:00:00 2001 From: Bernd Ritter Date: Sat, 30 Sep 2023 22:35:24 +0200 Subject: [PATCH] =?UTF-8?q?Bilderpfade=20angepasst,=20dass=20sie=20Context?= =?UTF-8?q?path=20=C3=BCbernehmen,=20Caddy-Reverse-Proxy=20und=20Deploymen?= =?UTF-8?q?t=20des=20WAR=20in=20Root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/docker-compose.yml | 10 ++++++++++ doc/reverse-proxy/Caddyfile | 2 ++ doc/tomcat/conf/server.xml | 4 ++-- .../webapp/WEB-INF/templates/fragments/footer.html | 4 ++-- .../webapp/WEB-INF/templates/fragments/header.html | 4 ++-- .../webapp/WEB-INF/templates/sites/sessions/login.html | 8 ++++---- 6 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 doc/reverse-proxy/Caddyfile diff --git a/doc/docker-compose.yml b/doc/docker-compose.yml index 624b507f..b108274e 100644 --- a/doc/docker-compose.yml +++ b/doc/docker-compose.yml @@ -4,6 +4,7 @@ version: '3.1' services: db: image: postgres:15 + container_name: db restart: always environment: POSTGRES_USER: holarse @@ -15,6 +16,7 @@ services: - website_my_pgdata:/var/lib/postgresql/data amq: image: git.holarse.de/holarse-linuxgaming/holarse/holaq:latest + container_name: amq restart: always ports: - 8161:8161 @@ -23,6 +25,7 @@ services: - amq_journal_data:/opt/holaq/data app: image: tomcat:11.0-jdk21-openjdk + container_name: app restart: always ports: - 8080:8080 @@ -32,6 +35,13 @@ services: - './tomcat/conf/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml' - './tomcat/lib/postgresql-42.3.1.jar:/usr/local/tomcat/lib/postgresql-42.3.1.jar' - '../target/holarseweb.war:/usr/local/tomcat/webapps/holarseweb.war' + reverse-proxy: + container_name: reverse-proxy + image: caddy:latest + ports: + - "80:80" + volumes: + - ./reverse-proxy/:/etc/caddy/ volumes: website_my_pgdata: external: true diff --git a/doc/reverse-proxy/Caddyfile b/doc/reverse-proxy/Caddyfile new file mode 100644 index 00000000..41b52a16 --- /dev/null +++ b/doc/reverse-proxy/Caddyfile @@ -0,0 +1,2 @@ +http://holarse-test +reverse_proxy * app:8080 diff --git a/doc/tomcat/conf/server.xml b/doc/tomcat/conf/server.xml index fa1219be..22ced8f2 100644 --- a/doc/tomcat/conf/server.xml +++ b/doc/tomcat/conf/server.xml @@ -148,8 +148,8 @@ resourceName="UserDatabase"/> - + + diff --git a/src/main/webapp/WEB-INF/templates/fragments/footer.html b/src/main/webapp/WEB-INF/templates/fragments/footer.html index 45f9218a..9cf45c23 100644 --- a/src/main/webapp/WEB-INF/templates/fragments/footer.html +++ b/src/main/webapp/WEB-INF/templates/fragments/footer.html @@ -7,7 +7,7 @@
- Holarse Logo A + Holarse Logo A

About Unify dolor sit amet, consectetur adipiscing elit. Maecenas eget nisl id libero tincidunt sodales.

Duis eleifend fermentum ante ut aliquam. Cras mi risus, dignissim sed adipiscing ut, placerat non arcu.

@@ -92,7 +92,7 @@

- Fragging Tux + Fragging Tux

diff --git a/src/main/webapp/WEB-INF/templates/fragments/header.html b/src/main/webapp/WEB-INF/templates/fragments/header.html index 52513a4d..88040e38 100644 --- a/src/main/webapp/WEB-INF/templates/fragments/header.html +++ b/src/main/webapp/WEB-INF/templates/fragments/header.html @@ -18,8 +18,8 @@ - diff --git a/src/main/webapp/WEB-INF/templates/sites/sessions/login.html b/src/main/webapp/WEB-INF/templates/sites/sessions/login.html index 697fb557..303fcc38 100644 --- a/src/main/webapp/WEB-INF/templates/sites/sessions/login.html +++ b/src/main/webapp/WEB-INF/templates/sites/sessions/login.html @@ -15,7 +15,7 @@

Login

- +