Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
32 lines
921 B
Cheetah
32 lines
921 B
Cheetah
# AriMail(도입 모듈) — 원본 deploy/systemd/mail-gateway.service.in 과 같은 내용. 서버에 이미 있는 유닛(arihakdang-mail/arimail/heart-mail)은 그대로 두고 current 심링크만 바꾸므로 보통 쓰이지 않는다.
|
|
[Unit]
|
|
Description={{UNIT}} — AriMail gateway ({{VERSION}})
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{USER}}
|
|
Group={{USER}}
|
|
WorkingDirectory={{APP_DIR}}/current
|
|
EnvironmentFile={{ENV_FILE}}
|
|
Environment=NODE_ENV=production
|
|
Environment=HOST=127.0.0.1
|
|
Environment=PORT=8790
|
|
ExecStart={{NODE}} server/index.mjs
|
|
Restart=always
|
|
RestartSec=3
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
ReadWritePaths={{APP_DIR}}/data
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier={{UNIT}}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|