This commit is contained in:
flaskfarm
2022-10-12 13:16:19 +09:00
parent b5bda4450b
commit 250cc5084f
5 changed files with 6 additions and 48 deletions

View File

@@ -1,44 +0,0 @@
# 카테고리
# uri 가 plugin인 경우 name 값은 대체
#- name: "토렌트"
# list:
# - uri: "rss"
#- name: "기본 기능"
# list:
# - uri: "terminal"
# - uri: "command"
# - uri: "flaskfilemanager"
# - uri: "flaskcode"
# - uri: "number_baseball"
#- name: "링크"
# list:
# - uri: "https://app.plex.tv"
# name: "Plex"
# target: "_self"
# - uri: "https://www.netflix.com"
# name: "Netflix"
- name: "시스템"
list:
- uri: "system"
name: "설정"
- uri: "setting"
name: "확장 설정"
- uri: "system/plugin"
name: "플러그인 관리"
- uri: "-"
- uri: "system/logout"
name: "로그아웃"
- uri: "system/restart"
name: "재시작(업데이트)"
- uri: "system/shutdown"
#uri: "javascript:shutdown_confirm();"
name: "종료"

Binary file not shown.

View File

@@ -19,8 +19,6 @@ pytz
requests==2.26.0
discord-webhook
pyyaml
pycryptodome
telepot-mod
Flask-Dropzone
lxml
pillow

View File

@@ -3,4 +3,7 @@ gevent
gevent-websocket
celery==5.0.5
redis
lxml
pillow
selenium==3.141.0
pycryptodome

View File

@@ -233,7 +233,8 @@ class Framework:
self.config['notify_yaml_filepath'] = os.path.join(self.config['path_data'], 'db', 'notify.yaml')
elif mode == "flask":
self.app.secret_key = os.urandom(24)
#self.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data/db/system.db?check_same_thread=False'
#db_path = os.path.join(self.config['path_data'], 'db', 'system.db')
#self.app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{db_path}check_same_thread=False'
self.app.config['SQLALCHEMY_BINDS'] = {}
self.app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
self.app.config['TEMPLATES_AUTO_RELOAD'] = True