Add a default configuration file #73
Loading…
Reference in New Issue
No description provided.
Delete Branch "Ember:default-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request adds a default configuration file at
instance/config.py
. This configuration file is pre-populated with all the default values, along with a short block of documentation explaining what each option does.The goal is to help ease the process of starting up a new instance. By making setup easier to understand and reducing overall friction, more admins will be able to spin up instances quicker and easier.
Let me know what you think of the documentation, and if I've made any mistakes in my descriptions.
As a note, I've omitted
SQLALCHEMY_TRACK_MODIFICATIONS
andPREFERRED_URL_SCHEME
, asSQLALCHEMY_TRACK_MODIFICATIONS
seems to be 0x0 configuring sqlalchemy moreso than something that can be configured about 0x0? AndPREFERRED_URL_SCHEME
seemed to permithttp
requests just fine even when set tohttps
, so I couldn't really figure out a reason for it to be anything buthttps
. However, I might be wrong about these things, and if so, I'll add them back.103993c7a0
toda2357183c
I suggest calling the file
config.py.example
so that pulling from the git repository will not conflict with existing/modified files.Done! And the README updated to match
Just minor corrections, then it’ll be good to merge. Thanks!
@ -0,0 +25,4 @@
# sqlite:/// + /path/to/your/database.db
#
# Until https://git.0x0.st/mia/0x0/issues/70 is resolved, it's recommended that
# any sqlite databases use an absolute paths, as relative paths aren't
absolute paths → absolute path
@ -0,0 +89,4 @@
# file to have the file extension that matches.
#
# For example, if the user uploads "myfile.png", but the file is actually a
# jpg, the file will get a URL like "eAa.jpg"
This is not true: This dict specifies overrides for python-magic’s default file extensions for each MIME type. Sometimes that’s something silly. It is only used when a file is uploaded without a file name extension.
Oh oops! I badly misread the code there 😅
How's this look?
oop dont merge found a bugokay all goodMerged as
be796b9b5b
. Thanks!Pull request closed