We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba069d commit 23e027eCopy full SHA for 23e027e
app.py
@@ -64,9 +64,9 @@ def strtobool(val):
64
@app.listener("before_server_start")
65
async def init(app, loop):
66
app.ctx.db = AsyncIOMotorClient(MONGO_URI).modmail_bot
67
- use_attachment_proxy = strtobool(os.getenv("USE_ATTACHMENT_PROXY", "https://cdn.discordapp.xyz"))
+ use_attachment_proxy = strtobool(os.getenv("USE_ATTACHMENT_PROXY", "no"))
68
if use_attachment_proxy:
69
- app.ctx.attachment_proxy_url = os.environ["ATTACHMENT_PROXY_URL"]
+ app.ctx.attachment_proxy_url = os.getenv("ATTACHMENT_PROXY_URL", "https://cdn.discordapp.xyz")
70
app.ctx.attachment_proxy_url = html.escape(app.ctx.attachment_proxy_url).rstrip("/")
71
else:
72
app.ctx.attachment_proxy_url = None
0 commit comments