diff options
| author | Luke Hoersten <[email protected]> | 2020-06-29 19:21:11 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-06-29 19:21:11 -0500 |
| commit | b61ea1bd7b0849af0df8d4c7c52b6954b8ceaa88 (patch) | |
| tree | fe1d18e97442c7bc7dc3cbf96afa8613fe5a56b8 /mercurial/web | |
| parent | 87b06a90243932b5ecdf394cee3fe1d97f040836 (diff) | |
Updated hgweb config
Diffstat (limited to 'mercurial/web')
| -rw-r--r-- | mercurial/web/tasks/main.yaml | 1 | ||||
| -rw-r--r-- | mercurial/web/templates/hgweb.config.j2 | 5 | ||||
| -rw-r--r-- | mercurial/web/templates/hgweb.wsgi.j2 | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/mercurial/web/tasks/main.yaml b/mercurial/web/tasks/main.yaml index 088a8fb..ba3c27c 100644 --- a/mercurial/web/tasks/main.yaml +++ b/mercurial/web/tasks/main.yaml @@ -10,6 +10,7 @@ loop: - "uwsgi" - "uwsgi-plugin-python3" + - "python3-pygments" notify: restart uwsgi - name: configure hgweb diff --git a/mercurial/web/templates/hgweb.config.j2 b/mercurial/web/templates/hgweb.config.j2 index 881f8e4..10d9e53 100644 --- a/mercurial/web/templates/hgweb.config.j2 +++ b/mercurial/web/templates/hgweb.config.j2 @@ -4,3 +4,8 @@ [web] deny_push = * allow_archive = gz bz2 zip +encoding = UTF-8 +style = gitweb + +[extensions] +hgext.highlight = diff --git a/mercurial/web/templates/hgweb.wsgi.j2 b/mercurial/web/templates/hgweb.wsgi.j2 index 16cc9fa..4f11d81 100644 --- a/mercurial/web/templates/hgweb.wsgi.j2 +++ b/mercurial/web/templates/hgweb.wsgi.j2 @@ -9,7 +9,7 @@ config = "{{mercurial_uwsgi_root}}/hgweb.config" #import sys; sys.path.insert(0, "/path/to/python/lib") # Uncomment to send python tracebacks to the browser if an error occurs: -import cgitb; cgitb.enable() +#import cgitb; cgitb.enable() # enable demandloading to reduce startup time from mercurial import demandimport; demandimport.enable() |
