mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added description for some settings
This commit is contained in:
parent
e597ba8504
commit
b39e2b889a
@ -330,7 +330,8 @@ def newrule(**keys):
|
|||||||
|
|
||||||
@api.post("settings")
|
@api.post("settings")
|
||||||
@authenticated_api
|
@authenticated_api
|
||||||
def settings(**keys):
|
def set_settings(**keys):
|
||||||
from .. import globalconf
|
from .. import globalconf
|
||||||
print(keys)
|
from pprint import pprint
|
||||||
|
pprint(keys)
|
||||||
globalconf.malojaconfig.update(keys)
|
globalconf.malojaconfig.update(keys)
|
||||||
|
@ -206,19 +206,21 @@ except:
|
|||||||
malojaconfig = Configuration(
|
malojaconfig = Configuration(
|
||||||
settings={
|
settings={
|
||||||
"Setup":{
|
"Setup":{
|
||||||
"directory_state":(tp.String(), "State Directory", "/var/lib/maloja"),
|
"data_directory":(tp.String(), "Data Directory", None, "Folder for all user data. Overwrites all choices for specific directories."),
|
||||||
"directory_logs":(tp.String(), "Log Directory", "/var/log/maloja"),
|
"directory_config":(tp.String(), "Config Directory", "/etc/maloja", "Folder for config data. Only applied when global data directory is not set."),
|
||||||
"directory_cache":(tp.String(), "Cache Directory", "/var/cache/maloja"),
|
"directory_state":(tp.String(), "State Directory", "/var/lib/maloja", "Folder for state data. Only applied when global data directory is not set."),
|
||||||
"skip_setup":(tp.Boolean(), "Skip Setup", False),
|
"directory_logs":(tp.String(), "Log Directory", "/var/log/maloja", "Folder for log data. Only applied when global data directory is not set."),
|
||||||
"force_password":(tp.String(), "Force Password", None),
|
"directory_cache":(tp.String(), "Cache Directory", "/var/cache/maloja", "Folder for cache data. Only applied when global data directory is not set."),
|
||||||
"clean_output":(tp.Boolean(), "Avoid Mutable Console Output", False)
|
"skip_setup":(tp.Boolean(), "Skip Setup", False, "Make server setup process non-interactive"),
|
||||||
|
"force_password":(tp.String(), "Force Password", None, "On startup, overwrite admin password with this one"),
|
||||||
|
"clean_output":(tp.Boolean(), "Avoid Mutable Console Output", False, "No console output that will cause problems when piped to other outputs")
|
||||||
},
|
},
|
||||||
"Debug":{
|
"Debug":{
|
||||||
"logging":(tp.Boolean(), "Enable Logging", True),
|
"logging":(tp.Boolean(), "Enable Logging", True),
|
||||||
"dev_mode":(tp.Boolean(), "Enable developer mode", False),
|
"dev_mode":(tp.Boolean(), "Enable developer mode", False),
|
||||||
},
|
},
|
||||||
"Network":{
|
"Network":{
|
||||||
"host":(tp.String(), "Host", "::"),
|
"host":(tp.String(), "Host", "::", "Use :: for default IPv6, 0.0.0.0 for default IPv4"),
|
||||||
"port":(tp.Integer(), "Port", 42010),
|
"port":(tp.Integer(), "Port", 42010),
|
||||||
},
|
},
|
||||||
"Technical":{
|
"Technical":{
|
||||||
|
Loading…
Reference in New Issue
Block a user