bend_puzzle/.htaccess
33333-33333 9d70afb4cc
Some checks failed
BEND FIELD CI / release (push) Has been cancelled
BEND FIELD CI / production-bridge (push) Has been cancelled
t
2026-08-01 22:31:04 +09:00

24 lines
1.1 KiB
ApacheConf

# BEGIN LINKFIELD MANAGED PROXY
ServerSignature Off
<IfModule mod_headers.c>
Header always unset X-Powered-By
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# Safe bootstrap: use the bounded PHP bridge until the Node server
# writes a verified current proxy port after it begins listening.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api/(.*)$ api-bridge.php?path=/api/$1 [QSA,L]
# The service source may share this directory with Apache. Expose only
# the curated browser bundle and deny every other direct file request.
RewriteRule ^$ - [L]
RewriteRule ^(?:index\.html|style\.css|favicon\.(?:svg|ico)|build-meta\.js|runtime-config\.js|shared-contracts\.js|store-catalog\.(?:generated\.js|json)|puzzle-patterns\.js|puzzle-core\.js|app-logic\.js|archive-codec\.js|field-persistence(?:-worker)?\.js|puzzle-worker\.js|app\.js|api-bridge\.php)$ - [L]
RewriteRule ^(?:assets|client)(?:/|$) - [L]
RewriteRule ^ - [F,L]
</IfModule>
<FilesMatch "(?i)^(?:\.|server\.js$|realtime-server\.js$|package(?:-lock)?\.json$|build-config\.json$|README\.md$)">
Require all denied
</FilesMatch>
# END LINKFIELD MANAGED PROXY