gitea, notion webhook
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
640 B

[Unit]
Description=slack-notifier (Gitea/Notion -> Slack DM)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/slack-notifier
# 저사양 보호: Go 런타임 메모리 상한 (인스턴스에 맞게 조정)
Environment=GOMEMLIMIT=180MiB
# 환경은 실행 명령어로 분기: -env prod -> JSON 로그 + logs/app.log + Gin release
ExecStart=/opt/slack-notifier/slack-notifier -env prod
Restart=always
RestartSec=3
# cgroup 메모리 하드 리밋 (OOM 보호)
MemoryMax=200M
# 보안 하드닝
NoNewPrivileges=true
ProtectSystem=full
PrivateTmp=true
[Install]
WantedBy=multi-user.target