Files
custom-html-tiny/compose.yml
notplants 9c56324c46 feat: pass through SERVER_IGNORE_HIDDEN_FILES env
static-web-server skips dot-prefixed paths by default. Passing this
env through lets operators set SERVER_IGNORE_HIDDEN_FILES=false to
serve e.g. /.well-known/matrix/server for Matrix federation
delegation.

Backwards-compatible: unset means existing behaviour (hidden files
skipped).
2026-05-25 17:34:48 +00:00

34 lines
913 B
YAML

---
version: "3.8"
services:
app:
image: joseluisq/static-web-server:2.38.0
command: ["-a", "0.0.0.0", "-p", "80", "-g", "warn", "-d", "/var/www/http/$HTTP_SUBDIR"]
networks:
- proxy
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
# Redirect from EXTRA_DOMAINS to DOMAIN
- "coop-cloud.${STACK_NAME}.version=1.0.1+2.38.0"
environment:
- HTTP_SUBDIR
- SERVER_IGNORE_HIDDEN_FILES
volumes:
- content:/var/www/http
volumes:
content:
networks:
proxy:
external: true