-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
51 lines (40 loc) · 1.33 KB
/
settings.py
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
# -*- coding: utf-8 -*-
import os
# from py4web.core import required_folder
# db settings
APP_FOLDER = os.path.dirname(__file__)
APP_NAME = os.path.split(APP_FOLDER)[-1]
# logger settings
LOGGERS = [
"warning:stdout"
] # syntax "severity:filename" filename can be stderr or stdout
ISTSOS_AUTH_ENDPOINT = 'auth/realms/istsos/protocol/openid-connect/token'
# Lago di Lugano
ISTSOS_CERESIO_BASEURL = 'https://istsos.ddns.net'
ISTSOS_CERESIO_AUTH_ENDPOINT = ISTSOS_AUTH_ENDPOINT
ISTSOS_CERESIO_USERNAME = 'test'
ISTSOS_CERESIO_PASSWORD = 'test'
# Lago Maggiore
ISTSOS_VERBANO_BASEURL = 'https://istsos.irsa.cnr.it'
ISTSOS_VERBANO_AUTH_ENDPOINT = ISTSOS_AUTH_ENDPOINT
ISTSOS_VERBANO_USERNAME = 'test'
ISTSOS_VERBANO_PASSWORD = 'test'
# Lago di Como
ISTSOS_LARIO_BASEURL = ISTSOS_VERBANO_BASEURL
ISTSOS_LARIO_AUTH_ENDPOINT = ISTSOS_AUTH_ENDPOINT
ISTSOS_LARIO_USERNAME = 'test'
ISTSOS_LARIO_PASSWORD = 'test'
# Lago di Varese
ISTSOS_VARESE_BASEURL = ISTSOS_CERESIO_BASEURL
ISTSOS_VARESE_AUTH_ENDPOINT = ISTSOS_AUTH_ENDPOINT
ISTSOS_VARESE_USERNAME = 'test'
ISTSOS_VARESE_PASSWORD = 'test'
# ISTSOS_SERVICES = 'demo'
# ISTSOS_USERNAME = 'test'
# ISTSOS_PASSWORD = 'test'
ALLOWED_ORIGINS = 'http://localhost:8080,http://172.20.0.3:8080'
# try import private settings
try:
from .settings_private import *
except (ImportError, ModuleNotFoundError):
pass