forked from FAForever/faf-python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.py
More file actions
49 lines (37 loc) · 1.61 KB
/
config.example.py
File metadata and controls
49 lines (37 loc) · 1.61 KB
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
40
41
42
43
44
45
46
47
48
49
"""
Configuration file for the FAForever Python Web Api
"""
import os
DATABASE = dict(
db=os.getenv("FAF_DB_NAME", "faf_test"),
user=os.getenv("FAF_DB_LOGIN", "root"),
password=os.getenv("FAF_DB_PASSWORD", "banana"),
host=os.getenv("DB_PORT_3306_TCP_ADDR", "127.0.0.1"),
port=int(os.getenv("DB_PORT_3306_TCP_PORT", "3306")))
HOST_NAME = os.getenv("VIRTUAL_HOST", 'dev.faforever.com')
ENVIRONMENT = os.getenv("FAF_API_ENVIRONMENT", 'testing')
REPO_PATHS = {
"api": '.',
"patchnotes": '/opt/dev/www/patchnotes'
}
GAME_DEPLOY_PATH = '/opt/dev/www/content/faf/updaterNew'
MOD_UPLOAD_PATH = '/content/faf/vault/mods'
MOD_THUMBNAIL_PATH = '/content/faf/vault/mods_thumbs'
MAP_UPLOAD_PATH = '/content/faf/vault/maps'
MAP_PREVIEW_PATH = '/content/faf/vault/map_previews'
CONTENT_URL = 'http://content.faforever.com'
STATSD_SERVER = os.getenv('STATSD_SERVER', None)
GITHUB_USER = 'some-user'
GITHUB_TOKEN = 'some-token'
AUTO_DEPLOY = ['patchnotes']
FLASK_LOGIN_SECRET_KEY = os.getenv("FLASK_LOGIN_SECRET_KEY", '1234')
CRYPTO_KEY = os.getenv("CRYPTO_KEY", 'vx7rzvK2C5XxW58XRVc5vTQnQLq35UYOEP8-PYSShBs=')
SECRET_KEY = os.getenv("SECRET_KEY", '1234')
JWT_AUTH_URL_RULE = None
JWT_AUTH_HEADER_PREFIX = "Bearer"
SLACK_HOOK_URL = 'http://example.com'
MANDRILL_API_KEY = os.getenv("MANDRILL_API_KEY", '')
MANDRILL_API_URL = os.getenv("MANDRILL_API_URL", 'https://mandrillapp.com/api/1.0')
STEAM_LOGIN_URL = os.getenv("STEAM_LOGIN_URL", 'https://steamcommunity.com/openid/login')
ACCOUNT_ACTIVATION_REDIRECT = 'http://www.faforever.com/account_activated'
PASSWORD_RESET_REDIRECT = 'http://www.faforever.com/password_resetted'