ge
Build and publish Jiaowu packages and container image / Test, package and publish (push) Successful in 29m11s

xiufu
This commit is contained in:
2026-07-25 21:49:56 +08:00 Unverified
parent eb13465b49
commit d42ec74822
4 changed files with 101 additions and 7 deletions
+34
View File
@@ -0,0 +1,34 @@
[Unit]
Description=Jiaowu Academic Affairs System
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=jiaowu
Group=jiaowu
WorkingDirectory=/opt/jiaowu
ExecStart=/opt/jiaowu/Jiaowu.Api
Restart=on-failure
RestartSec=5s
TimeoutStopSec=30s
SyslogIdentifier=jiaowu
Environment=DOTNET_EnableDiagnostics=0
NoNewPrivileges=true
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
LockPersonality=true
CapabilityBoundingSet=
AmbientCapabilities=
UMask=0077
[Install]
WantedBy=multi-user.target