Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2020 11:31:48 +0800
hgweb: run on Python 3
roles/hgweb/templates/etc/lighttpd/conf-available/hgweb.conf
Permissions: -rw-r--r--
$HTTP["host"] == "{{ hgweb_subdomain }}.{{ hostname }}" {
server.document-root = "/home/{{ hgweb_user }}/hg/mercurial/templates/"
$HTTP["url"] !~ "^/static/|^/robots.txt$" {
# mod_proxy uses "host" instead of "socket", because of course
proxy.server = ( "" => (( "host" => "/home/{{ hgweb_user }}/hgwebfiles/socket" )) )
"/robots.txt" => "/home/{{ hgweb_user }}/hgwebfiles/robots.txt"
"/favicon.ico" => "/static/hgicon.png"