- Scrub hardcoded hostnames from MCP descriptions, UI placeholders, and documentation examples to prevent environment leakage. - Remove hardcoded development database fallback from src/db.rs. - Untrack .cargo/config.toml from version control and ignore local mirrors. - Ignore test artifacts, screenshots, and WiX temporary outputs in .gitignore. - Add Inno Setup script (installer.iss) for Windows Setup.exe wizard installer. - Add WiX configuration (wix/main.wxs) for Windows MSI installer. - Add systemd service template (vps-switch.service) for Linux deployments. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
426 B
Desktop File
21 lines
426 B
Desktop File
[Unit]
|
|
Description=VPS Switch - Lightweight VPS manager and MCP server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/opt/vps-switch
|
|
ExecStart=/opt/vps-switch/vps-switch
|
|
Restart=always
|
|
RestartSec=5
|
|
Environment=PORT=18800
|
|
Environment=HOST=0.0.0.0
|
|
Environment=DATA_DIR=/opt/vps-switch/data
|
|
|
|
# 文件句柄限制(满足高并发 SSH 与终端)
|
|
LimitNOFILE=65535
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|