Реализован production-hardening по fix1: env/reconfigure, IPv4-only, TLS, secrets, firewall, docs
This commit is contained in:
@@ -4,8 +4,11 @@ import { runVisible } from "../lib/process";
|
||||
|
||||
export async function deploySystemd(context: InstallContext): Promise<void> {
|
||||
const values = {
|
||||
UI_BIND_HOST: context.options.uiBindHost,
|
||||
UI_PORT: context.options.uiPort
|
||||
UI_BIND_HOST: context.config.uiBindHost,
|
||||
UI_PORT: context.config.uiPort,
|
||||
INSTALL_DIR: context.config.installDir,
|
||||
DATA_DIR: context.config.dataDir,
|
||||
LOG_DIR: context.config.logDir
|
||||
};
|
||||
|
||||
const hysteriaUnit = await readText(`${context.options.packageDir}/systemd/hysteria-server.service`);
|
||||
|
||||
Reference in New Issue
Block a user