forked from cdanis/flask-esipy-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.dist
39 lines (33 loc) · 1.51 KB
/
config.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- encoding: utf-8 -*-
import datetime
# -----------------------------------------------------
# Application configurations
# ------------------------------------------------------
DEBUG = True
SECRET_KEY = 'CHANGEME'
PORT = 5015
HOST = 'localhost'
# Set this to the proxy host if using a reverse proxy to direct traffic
EXTERNAL_HOST = 'eve-tournaments.space'
# -----------------------------------------------------
# SQL Alchemy configs
# -----------------------------------------------------
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'
# -----------------------------------------------------
# ESI Configs
# -----------------------------------------------------
ESI_DATASOURCE = 'tranquility' # Change it to 'singularity' to use the test server
ESI_SWAGGER_JSON = 'https://esi.tech.ccp.is/latest/swagger.json?datasource=%s' % ESI_DATASOURCE
ESI_SECRET_KEY = '9V4EkCk6AgNiIICHsl2eYUmS0cssTFbdvOpk4oxX' # your secret key
ESI_CLIENT_ID = 'dac7d05428e94125a6e56ec912a3ca37' # your client ID
ESI_CALLBACK = 'https://%s/sso/callback' % (EXTERNAL_HOST) # the callback URI you gave CCP
ESI_USER_AGENT = 'eve-tournaments'
# ------------------------------------------------------
# Session settings for flask login
# ------------------------------------------------------
PERMANENT_SESSION_LIFETIME = datetime.timedelta(days=30)
# ------------------------------------------------------
# DO NOT EDIT
# Fix warnings from flask-sqlalchemy / others
# ------------------------------------------------------
SQLALCHEMY_TRACK_MODIFICATIONS = True