Add deploy webhook receiver for snotes
This commit is contained in:
17
deploy/snotes-deploy.service
Normal file
17
deploy/snotes-deploy.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=snotes deploy webhook receiver
|
||||
After=network.target docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/root/git/snotes/deploy
|
||||
ExecStart=/usr/bin/python3 /root/git/snotes/deploy/webhook-server.py --port 9997 --secret __WEBHOOK_SECRET__
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user