From 061e7fb96e5930450e5db1424582104ec24f451c Mon Sep 17 00:00:00 2001 From: alterware Date: Tue, 20 May 2025 19:37:44 +0000 Subject: [PATCH] alterware: our changes --- config.json | 14 +++++++------- twitfix.py | 2 +- twitfix.service | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config.json b/config.json index bd29f34..dce42b7 100644 --- a/config.json +++ b/config.json @@ -2,14 +2,14 @@ "config": { "appname": "vxTwitter", "color": "#1DA1F2", - "database": "[url to mongo database goes here]", - "link_cache": "ram", + "database": "mongodb://localhost:27017/bettervxtwitter", + "link_cache": "db", "method": "hybrid", - "repo": "https://github.com/dylanpdx/BetterTwitFix", - "table": "[database table here]", - "url": "https://vxtwitter.com", + "repo": "https://git.alterware.dev/alterware/BetterTwitFix", + "table": "links", + "url": "https://girlcock.alterware.dev", "combination_method": "local", "gifConvertAPI": "local", - "workaroundTokens":null + "workaroundTokens": null } -} \ No newline at end of file +} diff --git a/twitfix.py b/twitfix.py index 1ef763e..41602c8 100644 --- a/twitfix.py +++ b/twitfix.py @@ -486,4 +486,4 @@ def oEmbedGen(description, user, video_link, ttype,providerName=None): if __name__ == "__main__": app.config['SERVER_NAME']='localhost:80' - app.run(host='0.0.0.0') + app.run(host='0.0.0.0', port=8080) diff --git a/twitfix.service b/twitfix.service index 8d557af..4497783 100644 --- a/twitfix.service +++ b/twitfix.service @@ -3,11 +3,11 @@ Description=Init file for twitfix uwsgi instance After=network.target [Service] -User=dylan -Group=dylan -WorkingDirectory=/home/dylan/BetterTwitFix -Environment="PATH=/home/dylan/BetterTwitFix/venv/bin" -ExecStart=/home/dylan/BetterTwitFix/venv/bin/uwsgi --ini twitfix.ini +User=carbonara +Group=carbonara +WorkingDirectory=/home/carbonara/twitter/BetterTwitFix +Environment="PATH=/home/carbonara/twitter/BetterTwitFix/venv/bin" +ExecStart=/home/carbonara/twitter/BetterTwitFix/venv/bin/uwsgi --ini twitfix.ini Restart=always RestartSec=3