This commit is contained in:
33333-33333 2026-08-01 16:06:14 +09:00
commit 4c4e767ec6
73 changed files with 3502 additions and 741 deletions

22
.htaccess Normal file
View file

@ -0,0 +1,22 @@
# BEGIN LINKFIELD MANAGED PROXY
<IfModule mod_rewrite.c>
RewriteEngine On
# Prefer a native Apache proxy when the host permits it.
<IfModule mod_proxy.c>
<IfModule mod_proxy_wstunnel.c>
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule ^api/realtime/?$ ws://127.0.0.1:32956/api/realtime [P,L]
</IfModule>
RewriteRule ^api/(.*)$ http://127.0.0.1:32956/api/$1 [P,L]
</IfModule>
# Shared hosts often disable mod_proxy. Route ordinary API requests
# through the bundled PHP bridge instead.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api/(.*)$ api-bridge.php?path=/api/$1 [QSA,L]
</IfModule>
<Files ".linkfield-port">
Require all denied
</Files>
# END LINKFIELD MANAGED PROXY