verify cloudflare

master
Aevann1 2022-06-18 01:22:56 +02:00
parent 96d7df327f
commit 8c137fef2b
2 changed files with 15 additions and 6 deletions

View File

@ -370,12 +370,6 @@ def settings_security(v):
mfa_secret=pyotp.random_base32() if not v.mfa_secret else None
)
@app.get("/.well-known/assetlinks.json")
def googleplayapp():
with open("files/assets/assetlinks.json", "r", encoding='utf_8') as f:
return Response(f.read(), mimetype='application/json')
@app.post("/dismiss_mobile_tip")
def dismiss_mobile_tip():

View File

@ -246,6 +246,21 @@
{% block fixedMobileBarJS %}
{% endblock %}
{% if 'slackernews' in request.path %}
<meta name="cf-2fa-verify" content="ea6d12c0fb87b3b">
{% elif SITE == 'rdrama.net' %}
<meta name="cf-2fa-verify" content="4f40ca1ca249313">
{% elif SITE == 'watchpeopledie.co' %}
<meta name="cf-2fa-verify" content="372aba5b9338e00">
{% elif SITE == 'pcmemes.net' %}
<meta name="cf-2fa-verify" content="bf22ffe56e4bcda">
{% elif SITE == 'cringetopia.org' %}
<meta name="cf-2fa-verify" content="6c8ba243eb3b5ce">
{% endif %}
</head>
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background){% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>