配置样例 README

This commit is contained in:
2020-09-04 22:03:22 +08:00
parent 4408133f43
commit 369bc20823
2 changed files with 13 additions and 0 deletions

1
README.md Normal file
View File

@@ -0,0 +1 @@
# 新T树洞后端

12
config.sample.py Normal file
View File

@@ -0,0 +1,12 @@
import random, string, time
SQLALCHEMY_DATABASE_URI='sqlite:///hole.db'
SQLALCHEMY_TRACK_MODIFICATIONS=False
JSON_AS_ASCII=False
CLIENT_ID='<id>'
CLIENT_SECRET='<secret>'
MASTODON_URL='https://thu.closed.social'
REDIRECT_URI = 'http://hole.thu.monster/_auth'
SALT = ''.join(random.choices(string.ascii_letters + string.digits, k=32))
ADMINS = ['cs_114514']
START_TIME = int(time.time())