feat: 准备 Admin 线上 HTTPS 部署 (#81)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
[Unit]
|
||||
Description=CM AutoBuy Admin
|
||||
After=network-online.target mysql84.service
|
||||
Wants=network-online.target
|
||||
Requires=mysql84.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cmautobuy
|
||||
Group=cmautobuy
|
||||
WorkingDirectory=/opt/cmautobuy
|
||||
EnvironmentFile=/etc/cmautobuy/admin.env
|
||||
ExecStart=/opt/cmautobuy/cmautobuy-admin -addr 127.0.0.1:18080
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
TimeoutStopSec=30s
|
||||
UMask=0077
|
||||
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/opt/cmautobuy/data
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user