From 9c56324c465edec6baae308c892ad7ac1bdefb4c Mon Sep 17 00:00:00 2001 From: notplants <@notplants> Date: Mon, 25 May 2026 17:34:48 +0000 Subject: [PATCH] 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). --- .env.sample | 4 ++++ compose.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/.env.sample b/.env.sample index 3a978b0..50bc7bc 100644 --- a/.env.sample +++ b/.env.sample @@ -9,6 +9,10 @@ LETS_ENCRYPT_ENV=production HTTP_SUBDIR= COMPOSE_FILE="compose.yml" +## Serve dot-prefixed files/directories (e.g. /.well-known/). +## Defaults to true (hidden). Set false to expose them. +#SERVER_IGNORE_HIDDEN_FILES=false + # Single Sign On via Traefik "file provider" #COMPOSE_FILE="$COMPOSE_FILE:compose.sso.yml" diff --git a/compose.yml b/compose.yml index a9a8909..29d1247 100644 --- a/compose.yml +++ b/compose.yml @@ -20,6 +20,7 @@ services: - "coop-cloud.${STACK_NAME}.version=1.0.1+2.38.0" environment: - HTTP_SUBDIR + - SERVER_IGNORE_HIDDEN_FILES volumes: - content:/var/www/http