From 35d2c114f09dbbffdb1bc2d4d04a04126c1a3177 Mon Sep 17 00:00:00 2001 From: girst Date: Fri, 15 Oct 2021 03:07:50 +0200 Subject: [PATCH] remove webhooks gunicorn this is too much complexity for a default install. running webhooks externally will still be supported (as that's what s.gir.st will continue to do). --- config/gunicorn-webhooks-config.py | 4 ---- config/subscriptions-webhooks.service | 25 ------------------------- 2 files changed, 29 deletions(-) delete mode 100644 config/gunicorn-webhooks-config.py delete mode 100644 config/subscriptions-webhooks.service diff --git a/config/gunicorn-webhooks-config.py b/config/gunicorn-webhooks-config.py deleted file mode 100644 index 7370f9c..0000000 --- a/config/gunicorn-webhooks-config.py +++ /dev/null @@ -1,4 +0,0 @@ -bind = ['0.0.0.0:8801'] -accesslog = "/tmp/webhook21.log " -errorlog = "/tmp/webhook21.err" -workers = 1 diff --git a/config/subscriptions-webhooks.service b/config/subscriptions-webhooks.service deleted file mode 100644 index 41e8d03..0000000 --- a/config/subscriptions-webhooks.service +++ /dev/null @@ -1,25 +0,0 @@ -[Unit] -Description=Subscriptions Webhooks -After=network.target - -[Service] -# installation directory: -WorkingDirectory=/opt/yt - -# virtual environment bin path: -Environment="PATH=/opt/yt/venv/bin" - -# set if you don't use /etc/yt/config.ini: -#Environment="YT_CONFIG=/opt/yt/config/config.ini" - -# set if you don't want to run it as root. careful with ports < 1024 and database permissions. -#User=www -#Group=www - -Type=simple -# XXX: set path to gunicorn-frontend-config.py! -ExecStart=/usr/bin/env gunicorn --config /etc/yt/gunicorn-webhooks-config.py 'app.webhooks:app()' -ExecReload=/bin/kill -HUP $MAINPID - -[Install] -WantedBy=multi-user.target -- 2.39.3