diff options
Diffstat (limited to 'qtSecurity_bot.service')
-rw-r--r-- | qtSecurity_bot.service | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qtSecurity_bot.service b/qtSecurity_bot.service new file mode 100644 index 0000000..df252e6 --- /dev/null +++ b/qtSecurity_bot.service @@ -0,0 +1,22 @@ +[Unit] +Description=securityHeader Bot +After=network.target + +[Service] +ExecStart=/home/qt/.local/bin/pipenv run python3 main.py +WorkingDirectory=/home/qt/qt-securityHeader-bot/src +User=qt +Group=qt +Restart=always + +# It is recommended to set environment variables in an override.conf file +# readable only to the user to protect secrets. +Environment="QTSECURITYBOT_GERRIT_USERNAME=foo" +Environment="QTSECURITYBOT_GERRIT_PASSWORD=bar" +Environment="QTSECURITYBOT_TEAMS_WEBHOOK_URL=" +Environment="QTSECURITYBOT_TEAMS_ERROR_WEBHOOK_URL=" +Environment="QTSECURITYBOT_PORT=8090" + + +[Install] +WantedBy=multi-user.target |