This commit is contained in:
Aevann1 2021-10-20 16:51:40 +02:00
parent a17234205b
commit e123ec020f
2 changed files with 3 additions and 3 deletions

View file

@ -220,8 +220,8 @@ def sign_up_get(v):
@app.post("/signup")
@limiter.limit("1/second")
@limiter.limit("5/day")
# @limiter.limit("1/second")
# @limiter.limit("5/day")
@auth_desired
def sign_up_post(v):
with open('./disablesignups', 'r') as f:

2
setup
View file

@ -12,4 +12,4 @@ sudo apt -y install ffmpeg
mkdir /songs
cp ./env /env
. /env
gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 1000 --max-requests-jitter 500
gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 1000 --max-requests-jitter 500