diff options
| author | info@mode42.com <info@mode42.com> | 2026-08-08 03:54:55 +0000 |
|---|---|---|
| committer | info@mode42.com <info@mode42.com> | 2026-08-08 03:54:55 +0000 |
| commit | 20cb29c2f8c5c87bc590896854a20b1473ceb358 (patch) | |
| tree | 2857f41513a56ad41af97b57362639298aa7f033 /share/reverse-proxy/lighttpd.conf.example | |
#2
Diffstat (limited to 'share/reverse-proxy/lighttpd.conf.example')
| -rw-r--r-- | share/reverse-proxy/lighttpd.conf.example | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/share/reverse-proxy/lighttpd.conf.example b/share/reverse-proxy/lighttpd.conf.example new file mode 100644 index 0000000..1ef9244 --- /dev/null +++ b/share/reverse-proxy/lighttpd.conf.example @@ -0,0 +1,26 @@ +# HyBBX — lighttpd 1.4. HTTPD_DOCROOT example: /srv/www + +# Raise idle limits for upgraded WebSocket connections. +server.max-read-idle = 3600 +server.max-write-idle = 3600 + +$HTTP["url"] == "/hybbx-websocket/ws" { + proxy.server = ( "" => ( + "hybbx" => ( + "proxy" => "https://127.0.0.1:4591/hybbx", + "upgrade" => "enable" + ) + )) + proxy.header = ( "upgrade" => "enable" ) +} + +alias.url += ( "/hybbx-websocket/" => "/srv/www/hybbx-websocket/" ) +index-file.names += ( "index.php" ) + +fastcgi.server += ( ".php" => + ( "localhost" => + ( "socket" => "/run/php-fpm/www.sock" ) + ) +) + +# UI: cp -r reverse-proxy/docroot/hybbx-websocket $HTTPD_DOCROOT/ |
