
# gitea is a shit with lighttpd cos developers are shit
# cureently gitea only runs in hijacked domain or subdomain

$HTTP["host"] == "git.giteavenenux.org" {
    proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "3001" ) ) )
}


# but subdomain does not! debian gitea used 3001 cos gitea is shit and try to hack gogs

$HTTP["url"] =~ "^/gitea+" {
  proxy.server = ( "" =>
    (( "host" => "127.0.0.1", "port" => "3001" ))
  )
  proxy.header = ("map-urlpath" => (
    "/gitea" => "/"
    )
  )
}
