Skip to main content

Module proxy

Module proxy 

Source
Expand description

Reverse proxy server for pitchfork daemons.

Routes <slug>.<tld>:<port> to the daemon’s actual listening port. Slugs are defined in the global config (~/.config/pitchfork/config.toml) under [slugs]. Each slug maps to a project directory and daemon name.

§URL Routing

myapp.localhost:7777          →  localhost:8080  (via slug)

Modules§

hostname
Automatic hostnames for daemons.
hosts
/etc/hosts management for the reverse proxy.
lan_ip
LAN IP address detection for the reverse proxy.
mdns
mDNS address record publishing for LAN mode.
server
Reverse proxy server implementation.
trust
CA certificate trust management for the reverse proxy.
worktree
Git worktree / jj workspace auto-discovery for proxy slug routing.

Functions§

build_proxy_url
Build the URL for a proxy hostname: a legacy slug, or an automatic <daemon>.<worktree>.<project> host.
effective_tld
The TLD the proxy actually serves on.