From 2af21805660abf1263f0cce7d2dc9f650c40108d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 6 Sep 2021 01:09:32 +0200 Subject: [PATCH] fd --- env | 37 +++++++++++++++++++++++++++++++++++++ redis.conf | 6 +++--- restart | 3 +++ 3 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 env create mode 100644 restart diff --git a/env b/env new file mode 100644 index 000000000..c335d238e --- /dev/null +++ b/env @@ -0,0 +1,37 @@ +export PYTHONPATH="/service" +export REDIS_URL="redis://redis" +export DATABASE_URL="postgresql://postgres@postgres:5432/postgres" +export DATABASE_CONNECTION_POOL_URL="postgresql://postgres@postgres:5432/postgres" +export MASTER_KEY="-KTVciAUQFpFh2WdJ/oiHJlxl6FvzRZp8kYzAAv3l2OA=" +export DOMAIN="localhost" +export SITE_NAME="Drama" +export CLOUDFLARE_ZONE="3435tdfsdudebussylmaoxxt43" +export CLOUDFLARE_KEY="3435tdfsdudebussylmaoxxt43" +export GIPHY_KEY="3435tdfsdudebussylmaoxxt43" +export MAILGUN_KEY="3435tdfsdudebussylmaoxxt43" +export MAILGUN_DOMAIN="rdrama.net" +export FORCE_HTTPS="0" +export DISCORD_SERVER_ID="3435tdfsdudebussylmaoxxt43" +export DISCORD_CLIENT_ID="3435tdfsdudebussylmaoxxt43" +export DISCORD_CLIENT_SECRET="3435tdfsdudebussylmaoxxt43" +export DISCORD_BOT_TOKEN="3435tdfsdudebussylmaoxxt43" +export IMGUR_KEY="3435tdfsdudebussylmaoxxt43" +export IBB_KEY="3435tdfsdudebussylmaoxxt43" +export HCAPTCHA_SECRET="3435tdfsdudebussylmaoxxt43" +export YOUTUBE_KEY="3435tdfsdudebussylmaoxxt43" +export PUSHER_KEY="3435tdfsdudebussylmaoxxt43" +export SPAM_SIMILARITY_THRESHOLD="0.5" +export SPAM_SIMILAR_COUNT_THRESHOLD="5" +export SPAM_URL_SIMILARITY_THRESHOLD="0.1" +export COMMENT_SPAM_SIMILAR_THRESHOLD="0.5" +export COMMENT_SPAM_COUNT_THRESHOLD="5" +export READ_ONLY="0" +export BOT_DISABLE="0" +export COINS_NAME="Dramacoins" +export DEFAULT_TIME_FILTER="all" +export DEFAULT_THEME="dark" +export DEFAULT_COLOR="ff66ac #YOU HAVE TO PICK ONE OF THOSE COLORS OR SHIT WILL BREAK: ff66ac, 805ad5, 62ca56, 38a169, 80ffff, 2a96f3, eb4963, ff0000, f39731, 30409f, 3e98a7, e4432d, 7b9ae4, ec72de, 7f8fa6, f8db58" +export SLOGAN="Dude bussy lmao" +export GUMROAD_TOKEN="3435tdfsdudebussylmaoxxt43" +export GUMROAD_LINK="https://marsey1.gumroad.com/l/tfcvri" +export CARD_VIEW="1" diff --git a/redis.conf b/redis.conf index 60039cddc..49dc7036f 100644 --- a/redis.conf +++ b/redis.conf @@ -65,7 +65,7 @@ # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT OUT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#bind 127.0.0.1 +bind 127.0.0.1 # Protected mode is a layer of security protection, in order to avoid that # Redis instances left open on the internet are accessed and exploited. @@ -84,7 +84,7 @@ # you are sure you want clients from other hosts to connect to Redis # even if no authentication is configured, nor a specific set of interfaces # are explicitly listed using the "bind" directive. -protected-mode no +protected-mode yes # Accept connections on the specified port, default is 6379 (IANA #815344). # If port 0 is specified Redis will not listen on a TCP socket. @@ -233,7 +233,7 @@ daemonize no # UPSTART_JOB or NOTIFY_SOCKET environment variables # Note: these supervision methods only signal "process is ready." # They do not enable continuous pings back to your supervisor. -supervised no +supervised systemd # If a pid file is specified, Redis writes it where specified at startup # and removes it at exit. diff --git a/restart b/restart new file mode 100644 index 000000000..18963d1eb --- /dev/null +++ b/restart @@ -0,0 +1,3 @@ +. env +killall gunicorn +gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ \ No newline at end of file