FreedomBox/plinth.sample.config
Nick Daly ae3d61bec4 Simplify config loading.
These changes should make it easier to customize standard Plinth file
locations for other distributions going forward.  Most of the defaults
have been removed from *cfg.py*: we now assume that your plinth.config
file contains all the data we need.  This may turn out to be a bad
decision (not everybody retains a copy of the original config file).

I've also reorganized *plinth.sample.config* to separate the
directories from the files they're storing.  This should be the file
distributions patch in order to customize file locations per their
preferred file organization.
2013-11-05 22:03:32 -06:00

25 lines
496 B
Plaintext

[Name]
product_name = Plinth
box_name = FreedomBox
[Path]
# directory locations
file_root = %(root)s
data_dir = %(file_root)s/data
log_dir = %(data_dir)s
pid_dir = %(data_dir)s
python_root = %(file_root)s
users_dir = %(data_dir)s/users
server_dir = plinth/
# file locations
store_file = %(data_dir)s/store.sqlite3
user_db = %(users_dir)s
status_log_file = %(log_dir)s/status.log
access_log_file = %(log_dir)s/access.log
pidfile = %(pid_dir)s/pidfile.pid
[Network]
host = 127.0.0.1
port = 8000