added:增加Linux-server
This commit is contained in:
1 parent
6fe4e9d23f
commit
d78f3f811b
90 files changed
+16784
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user