front-proxy

v0.8.2
io.github.gutomezencio/front-proxy Checked 4 days ago Published 1 month ago

Map local domains (and HTTPS) to apps on local ports, OS-wide, via /etc/hosts and a reverse proxy.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_hosts List hosts

List the configured domains with their local port and HTTPS cert status ("own", "missing" or "default").

add_host Add host

Map a local domain to an app on a local port, eq. myapp.local → 3000. Saved to the config; call apply_config to use it in the running proxy.

ParameterTypeDescription
host *stringHostname to map, eq.: myapp.local (letters, digits, hyphens and dots)
port *number | stringLocal port the app listens on, 1-65535 (not 80 or 443)

update_host Change a host port

Point a configured domain to another local port. Call apply_config to use it in the running proxy.

ParameterTypeDescription
host *stringHostname to map, eq.: myapp.local (letters, digits, hyphens and dots)
port *number | stringLocal port the app listens on, 1-65535 (not 80 or 443)

remove_host Remove host

Remove a domain from the config. Call apply_config to remove it from the running proxy and /etc/hosts.

ParameterTypeDescription
host *stringHostname to map, eq.: myapp.local (letters, digits, hyphens and dots)

generate_certs Generate HTTPS certs

Create locally trusted HTTPS certs with mkcert for one domain, or for every configured domain when none is given. Needs mkcert installed, with its local CA installed once (`mkcert -install`).

ParameterTypeDescription
hoststringHostname to map, eq.: myapp.local (letters, digits, hyphens and dots)

proxy_status Proxy status

Whether front-proxy is running, whether HTTPS is on, whether saved changes are waiting for apply_config, and whether each app listens on its port ("up"/"down").

apply_config Apply the config

Load the saved config into the running proxy: routes, HTTPS certs and the /etc/hosts block, without restarting it. Needs the proxy running with its admin page (the default).