Do custom EsiPY prefix, change sso endpoint to look at pyfa.io instead of localhost

This commit is contained in:
blitzmann
2018-03-10 15:32:52 -05:00
parent 5560ef4d34
commit 8276746dad
2 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ logging_setup = None
cipher = None
clientHash = None
ESI_AUTH_PROXY = "http://localhost:5015" # "https://blitzmann.pythonanywhere.com" // need to get this set up, and actually put on it's own domain
ESI_AUTH_PROXY = "https://www.pyfa.io" # "http://localhost:5015"
ESI_CACHE = 'esi_cache'
LOGLEVEL_MAP = {
@@ -140,7 +140,7 @@ def defPaths(customSavePath=None):
# os.environ["SSL_CERT_FILE"] = os.path.join(pyfaPath, "cacert.pem")
# The database where we store all the fits etc
saveDB = os.path.join(savePath, "saveddata-py3-dev.db")
saveDB = os.path.join(savePath, "saveddata-py3-esi-dev.db")
# The database where the static EVE data from the datadump is kept.
# This is not the standard sqlite datadump but a modified version created by eos

View File

@@ -8,6 +8,7 @@ import config
import base64
import json
import os
import config
import eos.db
import datetime
@@ -47,7 +48,7 @@ class Esi(object):
@classmethod
def initEsiApp(cls):
cls.esiapp = EsiApp(cache=file_cache)
cls.esiapp = EsiApp(cache=file_cache, cache_time=None, cache_prefix='pyfa{0}-esipy-'.format(config.version))
cls.esi_v1 = cls.esiapp.get_v1_swagger
cls.esi_v4 = cls.esiapp.get_v4_swagger