-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch default settings file to toml
- Loading branch information
1 parent
0e8079a
commit 6c6ef3e
Showing
3 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 39 additions & 18 deletions
57
pste/resources/config/settings.yml → pste/resources/config/settings.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,65 @@ | ||
# Site name | ||
name: 'pste' | ||
name = "pste" | ||
|
||
# MUST be set to a secure, random value. | ||
# Generate one with: | ||
# python -c "import uuid; print(uuid.uuid4().hex);" | ||
secret_key: '' | ||
secret_key = "" | ||
|
||
# Database | ||
# https://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls | ||
sqlalchemy_database_uri: '' | ||
sqlalchemy_database_uri = "" | ||
|
||
# Redis | ||
# https://redis.readthedocs.io/en/stable/connections.html#redis.Redis.from_url | ||
redis_url: '' | ||
redis_url = "" | ||
|
||
# Overrides redis_url specifically for sessions. | ||
# sessions_redis_url: '' | ||
# sessions_redis_url = "" | ||
|
||
# File extensions that will be displayed as plaintext regardless of the file's mimetype. | ||
plaintext_types: [ | ||
'txt', 'php', 'rb', 'sh', 'py', | ||
'conf', 'c', 'cpp', 'java', 'rs', | ||
'html', 'htm', 'js', 'xml', 'sql', | ||
'lua', 'cs', 'pl', 'md', 'ini', | ||
'shtml', 'yaml', 'cfg', 'go', 'fish', | ||
'yml', 'bash' | ||
plaintext_types = [ | ||
"txt", | ||
"php", | ||
"rb", | ||
"sh", | ||
"py", | ||
"conf", | ||
"c", | ||
"cpp", | ||
"java", | ||
"rs", | ||
"html", | ||
"htm", | ||
"js", | ||
"xml", | ||
"sql", | ||
"lua", | ||
"cs", | ||
"pl", | ||
"md", | ||
"ini", | ||
"shtml", | ||
"yaml", | ||
"cfg", | ||
"go", | ||
"fish", | ||
"yml", | ||
"bash" | ||
] | ||
|
||
# If disabled, users can only be created via 'flask user create'. | ||
enable_registration: false | ||
enable_registration = false | ||
|
||
# Storage quota per-user in bytes. Default is 1GB | ||
user_storage_limit: 1073741824 | ||
user_storage_limit = 1_073_741_824 | ||
|
||
# Max size of a single file upload. Defaults to 1GB. | ||
max_upload_size: 1073741824 | ||
# Max size of a single file upload. Default is 1GB. | ||
max_upload_size = 1_073_741_824 | ||
|
||
# Minimum length of generated file URLs, excluding the file extension part (if any). | ||
min_url_length: 3 | ||
min_url_length = 5 | ||
|
||
# Sentry | ||
# https://sentry.io | ||
sentry_dsn: '' | ||
sentry_dsn = "" |