Skip to content

Commit

Permalink
fix PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui committed Jul 19, 2024
1 parent 1d9e526 commit cf1fda8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit cf1fda8

Please sign in to comment.