remotes/1693045480750635534/spooky-22
Aevann1 2021-09-06 01:09:32 +02:00
parent 544eca28bf
commit 2af2180566
3 changed files with 43 additions and 3 deletions

37
env 100644
View File

@ -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"

View File

@ -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.

3
restart 100644
View File

@ -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/