mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- Explicitly state datatype in config_items to handle them more generically - Handle boolean values correctly. Before this fix we got the string 'False' which evaluated to True (this affected the entry 'use_x_forwarded_host'). - Add the config entry 'danube_edition'. Activating it shows a voucher input field for pagekite accounts on freedombox.me during the firstboot process. Other vouchers (i.e. for VPN services) might follow. Add description and test for 'danube_edition' setting.
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
[Name]
|
|
product_name = Plinth
|
|
box_name = FreedomBox
|
|
|
|
[Path]
|
|
# directory locations
|
|
file_root = %(root)s
|
|
config_dir = %(file_root)s/data/etc/plinth
|
|
data_dir = %(file_root)s/data/var/lib/plinth
|
|
log_dir = %(file_root)s/data/var/log/plinth
|
|
pid_dir = %(file_root)s/data/var/run
|
|
server_dir = /
|
|
actions_dir = %(file_root)s/actions
|
|
doc_dir = %(file_root)s/doc
|
|
|
|
# file locations
|
|
store_file = %(data_dir)s/plinth.sqlite3
|
|
status_log_file = %(log_dir)s/status.log
|
|
access_log_file = %(log_dir)s/access.log
|
|
pidfile = %(pid_dir)s/plinth.pid
|
|
|
|
[Network]
|
|
host = 127.0.0.1
|
|
port = 8000
|
|
|
|
# Enable the following only if Plinth is behind a proxy server. The
|
|
# proxy server should properly clean and the following HTTP headers:
|
|
# X-Forwarded-Host
|
|
# X-Forwarded-Proto
|
|
# If you enable these unnecessarily, this will lead to serious security
|
|
# problems. For more information, see
|
|
# https://docs.djangoproject.com/en/1.7/ref/settings/
|
|
#
|
|
# These are enabled by default in Plinth because the default
|
|
# configuration allows only connections from localhost
|
|
#
|
|
# Leave the values blank to disable
|
|
use_x_forwarded_host = True
|
|
secure_proxy_ssl_header = HTTP_X_FORWARDED_PROTO
|
|
|
|
[Misc]
|
|
# The danube_edition changes the firstboot process and offers entering a
|
|
# voucher for a freedombox.me sub-domain. This functionality requires
|
|
# additional debian packages to be installed:
|
|
#
|
|
# pagekite, python3-requests
|
|
#
|
|
# They are not added as dependencies to keep the normal installation images
|
|
# lean, but make sure to add them if you want to build danube-edition images.
|
|
danube_edition = False
|