Skip to content

Files and paths

PSM keeps its own files in /opt/psm where it can, but some features have to write to system directories.

PathWhat
/opt/psmPSM itself, configuration, node records, backups
/opt/psm/confignodes, users, subscriptions, traffic state (the heart of a migration bundle)
/usr/local/bin/psmthe psm command
/usr/local/etc/xray, /usr/local/bin/xrayXray config and binary
/etc/sing-box, /usr/local/bin/sing-boxsing-box config and binary
/etc/mihomo, /usr/local/bin/mihomomihomo config and binary
/etc/hysteria, /usr/local/bin/hysteriastandalone Hysteria2
/etc/realm, /usr/local/bin/realmrealm relay
/etc/nginxNginx sites, the port 443 routing table (stream.d) and certificates (ssl)
/root/.acme.shacme.sh account and certificate cache
/etc/systemd/system/psm-*PSM's services and timers (/etc/init.d on OpenRC)
/etc/cron.d/psm-*backup, DDNS and other cron jobs
/var/log/psmservice logs on OpenRC systems

The proxy cores run as the system user psm-core, which can read only the core configs, their own state directories and the certificates their configs use.

Before using PSM on a server that already runs important websites, back up /etc/nginx or take a snapshot of the VPS.

Released under the AGPL-3.0 license · For lawful use only; follow the laws where you live