This commit is contained in:
maaa 2023-07-10 03:07:04 +02:00
parent 64c4cb25e1
commit 926ceb23e7
1 changed files with 2 additions and 1 deletions

3
main
View File

@ -28,6 +28,7 @@ PASSWORD_REQUIREMENT = config["config"]["PASSWORD_REQUIREMENT"]
app = Flask(__name__)
app.config["SECRET_KEY"] = SECRET_KEY
app.config["SERVER_NAME"] = "burger.ctaposter.xyz"
app.config["MAX_CONTENT_LENGTH"] = int(UPLOAD_LIMIT) * 1000 * 1000
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1)
@ -156,7 +157,7 @@ def user(pageusername):
else:
return """<img src="https://http.cat/images/404.jpg">""", 404
@app.route("/api/page/<userid>", methods=("GET", "POST"))
@app.route("/api/page/<userid>", subdomain="pages", methods=("GET", "POST"))
def apipageuser(userid):
pageuser = get_user(userid)
addhtml = """<base target="_blank"/> <head><meta http-equiv="Content-Security-Policy" default-src='none'; content="img-src cdn.discordapp.com cdn.discordapp.net media.tenor.com; style-src: 'self';" /></head>"""