mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Move back to 4mb and blame nginx
This commit is contained in:
parent
a9720fe763
commit
127d6609b8
@ -32,7 +32,7 @@ app.config['SQLALCHEMY_POOL_SIZE'] = 15
|
|||||||
app.config['RATELIMIT_STORAGE_URL'] = config["redis-uri"]
|
app.config['RATELIMIT_STORAGE_URL'] = config["redis-uri"]
|
||||||
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=3)
|
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=3)
|
||||||
app.config['REDIS_URL'] = config["redis-uri"]
|
app.config['REDIS_URL'] = config["redis-uri"]
|
||||||
app.config['MAX_CONTENT_LENGTH'] = 5 * 1024 * 1024 # Limit upload size to ~5mb
|
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024 # Limit upload size to 4mb
|
||||||
app.secret_key = config['app-secret']
|
app.secret_key = config['app-secret']
|
||||||
|
|
||||||
sentry.init_app(app)
|
sentry.init_app(app)
|
||||||
|
@ -1855,7 +1855,6 @@
|
|||||||
$("#messagebox-filemodal").val("");
|
$("#messagebox-filemodal").val("");
|
||||||
$("#fileinput").val("");
|
$("#fileinput").val("");
|
||||||
$("#filemodal").modal("close");
|
$("#filemodal").modal("close");
|
||||||
$("#filemodalprogress").hide();
|
|
||||||
});
|
});
|
||||||
funct.fail(function(data) {
|
funct.fail(function(data) {
|
||||||
Materialize.toast('Failed to send message.', 10000);
|
Materialize.toast('Failed to send message.', 10000);
|
||||||
@ -1876,6 +1875,7 @@
|
|||||||
$("#messagebox").attr('readonly', false);
|
$("#messagebox").attr('readonly', false);
|
||||||
$("#messagebox-filemodal").attr('readonly', false);
|
$("#messagebox-filemodal").attr('readonly', false);
|
||||||
$("#proceed_fileupload_btn").attr("disabled", false);
|
$("#proceed_fileupload_btn").attr("disabled", false);
|
||||||
|
$("#filemodalprogress").hide();
|
||||||
if ($("#filemodal").is(":visible")) {
|
if ($("#filemodal").is(":visible")) {
|
||||||
$("#messagebox-filemodal").focus();
|
$("#messagebox-filemodal").focus();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user