summaryrefslogtreecommitdiff
path: root/share/reverse-proxy/lighttpd.conf.example
blob: 1ef9244280e7c68e677e5258f7ec3a888e869ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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/
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com