fix >100MB uploads

pull/171/head
Aevann 2023-07-14 16:30:55 +03:00
parent 7b1d9402f6
commit f4dced0d09
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ def after_request(response:Response):
if user_id:
redis_instance.delete(f'LIMITER/{SITE}-{user_id}/{request.endpoint}:{request.path}/1/1/second')
if SITE != 'watchpeopledie.tv':
if SITE == 'rdrama.net':
cookie_name = app.config["SESSION_COOKIE_NAME"]
if len(request.cookies.getlist(cookie_name)) > 1:
response.set_cookie(cookie_name, 'test', max_age=0, domain=f".{SITE}")

View File

@ -12,7 +12,7 @@
{% block content %}
{% block form %}
<div class="submit-grid-view">
<form id="submitform" action="{% if False and SITE == 'watchpeopledie.tv' and not SITE_SETTINGS['under_attack'] %}https://videos.watchpeopledie.tv{% elif sub %}/h/{{sub}}{% endif %}/submit" method="post" enctype="multipart/form-data" style="grid-column: 2" data-nonce="{{g.nonce}}" data-onsubmit="submit(this)">
<form id="submitform" action="{% if SITE == 'watchpeopledie.tv' and not SITE_SETTINGS['under_attack'] %}https://videos.watchpeopledie.tv{% elif sub %}/h/{{sub}}{% endif %}/submit" method="post" enctype="multipart/form-data" style="grid-column: 2" data-nonce="{{g.nonce}}" data-onsubmit="submit(this)">
<div class="container pb-0">
<div class="row justify-content-center">
<div class="col px-3 py-0">