Ai
17 Star 37 Fork 21

eoolife/flask.scalable_rest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_settings.py 622 Bytes
一键复制 编辑 原始数据 按行查看 历史
daqing 提交于 2015-09-18 13:55 +08:00 . uwsgi + nginx config here
# -*- coding: utf-8 -*-
"""
jaryee.web
~~~~~~~~~~~~~~~~~~~
Jaryee system application
:copyright: (c) Power by Daqing Chan.
:license, see LICENSE for more details.
"""
from datetime import timedelta
DEBUG = True
HOST = '0.0.0.0'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@127.0.0.1:3306/restapi?charset=utf8mb4'
SQLALCHEMY_ECHO = False
SQLALCHEMY_POOL_RECYCLE = 20
SECRET_KEY = 'super-secret fuck'
JWT_SECRET_KEY = 'JSON-Web-Token-Projected-Every!!'
JWT_AUTH_URL_RULE = '/api/auth_token'
JWT_EXPIRATION_DELTA = timedelta(seconds=7200)
JWT_LEEWAY = 60
JWT_DEFAULT_REALM = 'Login Required'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/eoolife/flask.scalable_rest.git
git@gitee.com:eoolife/flask.scalable_rest.git
eoolife
flask.scalable_rest
flask.scalable_rest
master

搜索帮助