FossilRepo

fossilrepo / docker / Caddyfile
Blame History Raw 24 lines
1
# fossilrepo Caddy configuration
2
#
3
# Routes *.{domain} subdomains to the fossil server.
4
# Each repo gets its own subdomain: reponame.fossilrepos.io
5
#
6
# In production, replace {$FOSSILREPO_CADDY_DOMAIN} with your domain
7
# or set the environment variable.
8
9
# Wildcard subdomain routing to fossil server
10
*.{$FOSSILREPO_CADDY_DOMAIN:localhost} {
11
# Extract repo name from subdomain
12
@repo host *.{$FOSSILREPO_CADDY_DOMAIN:localhost}
13
14
# Reverse proxy to fossil server
15
# fossil server --repolist serves all repos under /data/repos/
16
# and routes by the first path segment or subdomain
17
reverse_proxy @repo localhost:8080
18
}
19
20
# Root domain — landing page or redirect
21
{$FOSSILREPO_CADDY_DOMAIN:localhost} {
22
respond "fossilrepo server running" 200
23
}
24

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button