pub fn init_server(
config_dir: &Path,
storage_dir: &Path,
hostname: &str,
) -> Result<(), String>Expand description
Generate a fresh server configuration with TLS certificates and PSK.
config_dir is the base directory for pwr-server files (e.g.
/etc/pwr for system installs or ~/.config/pwr for user installs).
Cert and key files are written under this directory; the config file
is written at config_dir/server.toml.
storage_dir is where project archives will be stored (e.g.
/srv/pwr/projects or ~/.local/share/pwr/projects).