added:增加Linux-server

This commit is contained in:
Vaica committed 2026-06-21 20:42:44 +08:00
1 parent 712116d21d
commit bd96aadb2f
90 files changed
+16784 -1

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
[Unit]
Description=Write Server - Hugo Blog Admin
Documentation=https://github.com/your-repo/write-server
After=network.target
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/opt/write-server
Environment=NODE_ENV=production
Environment=PORT=8016
EnvironmentFile=/opt/write-server/.env
ExecStart=/usr/bin/node /opt/write-server/.next/standalone/server.js
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=10
StandardOutput=append:/opt/write-server/logs/app.log
StandardError=append:/opt/write-server/logs/app.log
# 安全限制
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/write-server
[Install]
WantedBy=multi-user.target