[DEFAULT]
# change this by your login name
admin=admin
# change this to false to disallow repo creation via www
allow_web_init = true
# change this to true to allow ssh key upload via www
allow_web_keys = false
# change this to disallow docs build via http
allow_docs = http
# show archives links in web ui
allow_archive = gz, zip, bz2
# change this to true to disable permissions check for ssh users
# (allow everything)
disable_ssh_perms = false
[server:main]
use = egg:Paste#http
# change this to 0.0.0.0 to listen on all network interfaces
host = 127.0.0.1
port = 6969
[pipeline:main]
pipeline = auth hg
[filter:auth]
# auth section. passwd is a password file generated by the htpasswd tool
use = egg:MercurialApp
passwd = %(here)s/var/passwd
groups = %(here)s/var/groups.ini
# or if you want to use ldap. see
# http://hg.afpy.org/gawel/afpy.ldap/modules/afpy.ldap.authbasic.html
#use = egg:afpy.ldap#auth_basic
#section = ldap
[app:hg]
# main wsgi application
use = egg:MercurialApp#skin
[hg:config]
# various parameters go there
userdir = %(here)s/repos/users
[hg:main]
# public repositories. only admin can push
hgwebdir = %(here)s/repos/main
allow_read = *
allow_push = %(admin)s
[hg:private]
# private repositories. only admin can read / write
hgwebdir = %(here)s/repos/private
allow_read = %(admin)s
allow_push = %(admin)s
[hg:group1]
# private repositories. only members of group1 can read / write
hgwebdir = %(here)s/repos/group1
allow_read = *
allow_push = *
require_group = group1
# Logging configuration
[loggers]
keys = root, hgapp
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_hgapp]
level = WARN
handlers =
qualname = hgapp
[handler_console]
class = handlers.RotatingFileHandler
args = ('var/log/hgapp.log', 'a', 100000, 10, 'utf-8')
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S