fossil director
Project description
Fossil Director
Fossil-director is an HTTP server used to host multiple Fossil repositories, based on the hostname.
The server is meant to run behind nginx or other reverse proxy. Fossil-director will inspect the incoming HTTP Host:
header and dispatch to the configured fossil repository.
Installation
(Requires Python >= 3.8)
pip install fossil-director
Configuration
A configuration .ini
is required. At minimum, define a hostname and path to the fossil repository:
[example.com]
repo = /path/to/repo.fossil
Each virtual host is a new section. Here are all of the options:
[foo.org]
repo = /other/path.fossil
repolist = false # if repo is a directory, set this to true to serve
# a directory index of fossil files
baseurl = http://foo.org/fossil/ # base url
args = --nodelay --acme # extra arguments to the `fossil http` command
redirect_root = /some/other/path # redirect requests for / to the given URI
By default, the server runs on port 7000. Here are the server options:
[server]
host = 127.0.0.1
port = 7000
fossil_cmd = /usr/local/bin/fossil # path to fossil executable
Running
fossil-director /path/to/config.ini
Here's an example systemd service
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fossil_director-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1dc40ca8d859a277c3e3e543ccd6691a48df107cc2bd7e062ecf6cef00b77d7 |
|
MD5 | 4048ef022702017f0c0066d9413d6723 |
|
BLAKE2b-256 | 491201e0c19599c9863d2a0839c14f46066912ee8c21fc84d0340745e3bdd510 |