mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-04 08:53:42 +00:00
- Change default server directory from plinth/ to /plinth as the program expects. - First load the values from configuration file and then override them with command line parameters. - Show default values on the command line help. - Use configuration file values as default values to command line parameters. - Log the value of script prefix (server_dir) for easy debugging. - Make sure the server_dir is properly loaded from configuration files.
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
[Name]
|
|
product_name = Plinth
|
|
box_name = FreedomBox
|
|
|
|
[Path]
|
|
# directory locations
|
|
file_root = /usr/share/plinth
|
|
config_dir = /etc/plinth
|
|
data_dir = /var/lib/plinth
|
|
log_dir = /var/log/plinth
|
|
pid_dir = /var/run
|
|
server_dir = /plinth
|
|
actions_dir = /usr/share/plinth/actions
|
|
doc_dir = /usr/share/doc/plinth
|
|
|
|
# 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
|