make uploading of a 1GB possible

This commit is contained in:
crunk 2024-04-27 11:26:19 +02:00
parent 1b6104896f
commit 1cf75379b2
4 changed files with 10 additions and 9 deletions

View File

@ -19,7 +19,7 @@ def create_app():
APP.secret_key = "secret-key" APP.secret_key = "secret-key"
APP.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///distribusiverse.db" APP.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///distribusiverse.db"
APP.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True APP.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
APP.config["MAX_CONTENT_LENGTH"] = 150 * 1024 * 1024 APP.config["MAX_CONTENT_LENGTH"] = 1024 * 1024 * 1024
APP.config["MAIL_SERVER"] = "mail.autonomic.zone" APP.config["MAIL_SERVER"] = "mail.autonomic.zone"
APP.config["MAIL_PORT"] = 587 APP.config["MAIL_PORT"] = 587

View File

@ -89,7 +89,7 @@ def GetCssFile(distribusi):
def RunDistribusi(userfolder, cssfile): def RunDistribusi(userfolder, cssfile):
parser = build_argparser() parser = build_argparser()
args = parser.parse_args(["--menu-with-index", "-s", cssfile]) args = parser.parse_args(["-t", "--menu-with-index", "-s", cssfile])
distribusify(args, userfolder) distribusify(args, userfolder)

View File

@ -56,6 +56,7 @@ class UploadForm(FlaskForm):
option_widget=None, option_widget=None,
validators=[DataRequired()], validators=[DataRequired()],
) )
tags = StringField( tags = StringField(
"Add tags, seperated by commas. No need for the '#' sign:", "Add tags, seperated by commas. No need for the '#' sign:",
validators=[validators.InputRequired(), Length(2, 500)], validators=[validators.InputRequired(), Length(2, 500)],
@ -67,7 +68,7 @@ class UploadForm(FlaskForm):
FileAllowed(["zip"], "Zip archives only!"), FileAllowed(["zip"], "Zip archives only!"),
FileRequired(), FileRequired(),
FileSize( FileSize(
max_size=104857600, max_size=1073741824,
message="Zipfile size must be smaller than 100MB", message="Zipfile size must be smaller than 100MB",
), ),
], ],

View File

@ -2,8 +2,8 @@ body
{ {
font-family: monospace, monospace; font-family: monospace, monospace;
font-size: 15px; font-size: 15px;
background-color: #272a33; background-color: #fdfdfd;
color:#E0B0FF; color:#29d148;
word-wrap: break-word; word-wrap: break-word;
line-height: 1.1; line-height: 1.1;
} }
@ -12,7 +12,7 @@ div#login{
width: 30%; width: 30%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
background-color:#272a33; background-color:#fdfdfd;
text-decoration: none; text-decoration: none;
} }
@ -24,10 +24,10 @@ div#login form {
} }
input[type=text], input[type=password], input[type=file] { input[type=text], input[type=password], input[type=file] {
color: white; color: #C397DF;
width: 18em; width: 18em;
max-width: 18em; max-width: 18em;
background-color: #2D3039; background-color: #fdfdfd;
border: 1px solid #E0B0FF; border: 1px solid #E0B0FF;
} }
@ -41,7 +41,7 @@ div#upload form {
padding-left: auto; padding-left: auto;
padding-right: auto; padding-right: auto;
width: 31em; width: 31em;
background-color:#30333f; background-color:#fdfdfd;
text-decoration: none; text-decoration: none;
scroll-behavior: smooth; scroll-behavior: smooth;
border-style: outset; border-style: outset;