MercurialApp Gawel's repository

Previous topic

Bootstrap script

Next topic

hgapp.ssh.keys – SSH Keys

This Page

Configuration file

[DEFAULT]
# change this by your login name
admin=gawel

[server:main]
use = egg:Paste#http

[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/passwd

[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/container
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

# Logging configuration
[loggers]
keys = root, hgapp

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = console

[logger_hgapp]
level = DEBUG
handlers =
qualname = hgapp

[handler_console]
# you may want change this
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S