forked from ooici/ion-ux
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py.template
69 lines (54 loc) · 1.81 KB
/
config.py.template
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import os
import logging
##
# IMPORTANT: Don't edit this file. Copy this file into 'config.py' and change values as needed.
# This file is also used by fab to generate config.py
##
# flask server machine name
# eg. FLASK_HOST = 'localhost'
FLASK_HOST = 'FLASK_HOST_VALUE'
# flask server port number
# eg. FLASK_PORT = 3000
FLASK_PORT = FLASK_PORT_VALUE
# Be sure to define a secret key to enable session cookies
# eg. SECRET_KEY = 'foo'
SECRET_KEY = 'SECRET_KEY_VALUE'
# Service gateway machine name
# eg. GATEWAY_HOST = 'localhost'
# GATEWAY_HOST = 'xxxx.oceanobservatories.org'
# GATEWAY_HOST = '193.33.33.33'
GATEWAY_HOST = 'GATEWAY_HOST_VALUE'
#
# Service gateway port number
# eg. GATEWAY_PORT=5000
GATEWAY_PORT = GATEWAY_PORT_VALUE
LOGGED_IN = True
PRODUCTION = False
CACHED_LAYOUT = True
# whether to use the cache for:
# - schema retrieval
USE_CACHE = False
# Config the UI as either 'PRODUCTION', 'DEVELOPMENT' OR 'INTEGRATION'
# 'PRODUCTION' option for end-user UI
# 'DEVELOPMENT' option for end-user UI and development sidebar
# 'INTEGRATION' option for development sidebar and disabled info-level filtering
UI_MODE = 'PRODUCTION'
if 'PORTAL_ROOT' in os.environ:
PORTAL_ROOT = os.environ['PORTAL_ROOT']
else:
PORTAL_ROOT = 'PATH_TO_ION_UX'
# Logging level
# Options: logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL
# Example: app.logger.warning('warning')
# app.logger.error('error')
# app.logger.info('Info')
#LOGGING_LEVEL = logging.DEBUG
LOGGING_LEVEL = LOGGING_LEVEL_VALUE
LOGGING_MAX_SIZE_MB = 550
LOGGING_FILE_NAME = 'ion-ux.log'
# Maximum number of search results
MAX_SEARCH_RESULTS = 100
# Max warning time in sec for slow response
MAX_WARN_TIME_SEC = 4
# Max warning content length in byte
MAX_CONTENT_LENGTH_BYTE = 524500 # Half MB