forked from rDrama/rDrama
commit
c686783daf
|
@ -48,9 +48,9 @@ app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
|
|||
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365
|
||||
app.config["SESSION_REFRESH_EACH_REQUEST"] = True
|
||||
|
||||
app.config["SLOGAN"] = environ.get("SLOGAN").strip()
|
||||
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR").strip()
|
||||
app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME").strip() + "_" + environ.get("DEFAULT_COLOR").strip()
|
||||
app.config["SLOGAN"] = environ.get("SLOGAN", "").strip()
|
||||
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR", "ff0000").strip()
|
||||
app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME", "light").strip() + "_" + environ.get("DEFAULT_COLOR", "ff0000").strip()
|
||||
|
||||
app.config["FORCE_HTTPS"] = int(environ.get("FORCE_HTTPS", 1)) if ("localhost" not in app.config["SERVER_NAME"] and "127.0.0.1" not in app.config["SERVER_NAME"]) else 0
|
||||
|
||||
|
@ -107,7 +107,7 @@ app.config["RATELIMIT_HEADERS_ENABLED"]=True
|
|||
limiter = Limiter(
|
||||
app,
|
||||
key_func=get_ipaddr,
|
||||
default_limits=["100/minute"],
|
||||
#default_limits=["100/minute"],
|
||||
headers_enabled=True,
|
||||
strategy="fixed-window"
|
||||
)
|
||||
|
|
|
@ -199,6 +199,7 @@
|
|||
count: {{ sparkles }},
|
||||
minAge: 500,
|
||||
maxAge: 1000,
|
||||
position: "afterend",
|
||||
starsource: `
|
||||
<svg
|
||||
width="100%"
|
||||
|
@ -306,7 +307,7 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<div id="post-text">
|
||||
<div id="post-text" style="z-index: 50">
|
||||
{{p.realbody(v) | safe}}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue