From cf1fda85f8c083bd727bd9ee9153edd665f74f0f Mon Sep 17 00:00:00 2001 From: Klaus Dandl Date: Fri, 19 Jul 2024 22:33:55 +0200 Subject: [PATCH] fix PATH --- docker-compose.yml | 4 ++-- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c87c04d..17682ee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: image: git.b0t.at/b0t-at/security.txt:latest environment: - SECURITY_STRING=${SECURITY_STRING} - - PATH=${PATH:-/security.txt} + - SERVINGPATH=${SERVINGPATH:-/security.txt} # volumes: # - /opt/security-txt/public_html:/usr/share/nginx/html # ports: @@ -15,7 +15,7 @@ services: - "com.centurylinklabs.watchtower.enable=true" - "traefik.enable=true" - "traefik.docker.network=proxy" - - traefik.http.routers.security-txt.rule=Path(`${PATH:-/security.txt}`) + - traefik.http.routers.security-txt.rule=Path(`${SERVINGPATH:-/security.txt}`) - "traefik.http.routers.security-txt.entrypoints=https,http" - "traefik.http.routers.security-txt.priority=420" - "traefik.http.routers.security-txt.tls.certresolver=le-tls" # le-dns, le-tls, le-http diff --git a/entrypoint.sh b/entrypoint.sh index 5013c54..10a92c3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ if [ -z "$SECURITY_STRING" ]; then fi # Write the content of SECURITY_STRING to /usr/share/nginx/html/security.txt -echo "$SECURITY_STRING" > /usr/share/nginx/html/$PATH +echo "$SECURITY_STRING" > /usr/share/nginx/html$SERVINGPATH # Execute the CMD from the Dockerfile, keeping nginx in the foreground exec "$@" \ No newline at end of file