Repository navigation
pm 0.16.0
The site can serve a company network without Cloudflare: where it listens (listen), the link pm prints (site_url) and how a request from beyond this machine gets in (access) are now three settings.
Upgrade guide
- On each machine, install the release:
curl -fsSL https://github.com/Yeeef/pm/releases/download/pm-v0.16.0/install.sh | sh. - In the repo, run
pm upgrade --to 0.16.0, then commit what it changes and merge it, as an ordinary PR. - Commit
.pm/config.tomloncepm upgrade(orpm init) has addedaccess = "cloudflare"to a config that setsaccess_team. A config withsite_urland noaccess_teamgets no access: set one withpm init --access cloudflareorpm init --access none, or the pm service does not start.
Added
pm init --listen ADDRsetslisten, the IP the site binds (127.0.0.1 when unset;0.0.0.0for every interface), andpm init --access cloudflare|nonesetsaccess. Withaccess = "none"the network is the gate: colleagues read the site atsite_urlwith no login, but replies are taken only from this machine; their pages show the rule in place of each reply form.pm whereand the service log state a non-loopbacklisten.
Changed
accessis required oncelistenis not loopback orsite_urlis set: the pm service does not start without it, andpm doctornames it.
Security
- A request is local only when its TCP peer is loopback, its
Hostnames this machine and Cloudflare's edge did not forward it; theHostheader alone no longer grants local trust, so a client on the network sendingHost: localhostis refused.