You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
588 B

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
Version = 'dev'
LogLevel = 'INFO'
LogFile = 'runtime.log'
ApiPath = '/'
ApiPort = 7839
ApiToken = ''
DnsServer = None
CheckThread = 64
WorkDir = '/tmp/ProxyC'
TestHost = 'proxyc.net'
TestSite = 'www.bing.com'
PathEnv = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin'
from Utils.Constant.LoadEnv import loadEnvOptions
for envKey, envValue in loadEnvOptions('../../env.yml').items():
if type(envValue) == int:
exec('%s = %s' % (envKey, envValue))
if type(envValue) == str:
exec('%s = \'%s\'' % (envKey, envValue))