You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.2 KiB
62 lines
1.2 KiB
{$CADDY_GLOBAL_OPTIONS} |
|
|
|
frankenphp { |
|
{$FRANKENPHP_CONFIG} |
|
} |
|
|
|
{$CADDY_EXTRA_CONFIG} |
|
|
|
# Nostr relay WebSocket proxy |
|
{$RELAY_DOMAIN:relay.localhost} { |
|
log { |
|
format json |
|
} |
|
encode zstd gzip |
|
reverse_proxy strfry:7777 |
|
} |
|
|
|
{$SERVER_NAME:localhost} { |
|
log { |
|
{$CADDY_SERVER_LOG_OPTIONS} |
|
# Redact the authorization query parameter that can be set by Mercure |
|
format filter { |
|
request>uri query { |
|
replace authorization REDACTED |
|
} |
|
} |
|
} |
|
|
|
root /app/public |
|
encode zstd br gzip |
|
|
|
mercure { |
|
# Transport to use (default to Bolt) |
|
transport_url {$MERCURE_TRANSPORT_URL:bolt:///data/mercure.db} |
|
# Publisher JWT key |
|
publisher_jwt {env.MERCURE_JWT_SECRET} {env.MERCURE_PUBLISHER_JWT_ALG} |
|
# Allow anonymous subscribers (double-check that it's what you want) |
|
anonymous |
|
# Enable the subscription API (double-check that it's what you want) |
|
subscriptions |
|
# Extra directives |
|
{$MERCURE_EXTRA_DIRECTIVES} |
|
} |
|
|
|
vulcain |
|
|
|
{$CADDY_SERVER_EXTRA_DIRECTIVES} |
|
|
|
# Disable Topics tracking if not enabled explicitly: https://github.com/jkarlin/topics |
|
header ?Permissions-Policy "browsing-topics=()" |
|
|
|
@phpRoute { |
|
not path /.well-known/mercure* |
|
not file {path} |
|
} |
|
rewrite @phpRoute index.php |
|
|
|
@frontController path index.php |
|
php @frontController |
|
|
|
file_server |
|
}
|
|
|