Move auth tokens to server config.

This commit is contained in:
luxick
2018-03-15 13:14:54 +01:00
parent b5df3289b4
commit 4b8d2421a5
9 changed files with 93 additions and 70 deletions

View File

@@ -0,0 +1,18 @@
# This config will be copied on first launch.
# Edit the the copied file at '~/.config/dsst/server.json' before launching the server
DEFAULT_CONFIG = {
'database': {
'db_name': 'dsst',
'user': 'dsst',
'password': 'dsst'
},
'server': {
'host': 'localhost',
'port': 55225,
'buffer_size': 1024
},
'tokens': {
'<read_write_token_here>': 'rw',
'<read_only_token_here>': 'r'
}
}