Add a default configuration file #73
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 seems to be 0x0 configuring sqlalchemy moreso than something that can be configured about 0x0? And
PREFERRED_URL_SCHEME seemed to permit
http requests just fine even when set to
https, so I couldn't really figure out a reason for it to be anything but
https. However, I might be wrong about these things, and if so, I'll add them back.
I suggest calling the file
config.py.example so that pulling from the git repository will not conflict with existing/modified files.
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
@ -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"
Pull request closed
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?