-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_template.py
57 lines (45 loc) · 1.96 KB
/
config_template.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
52
53
54
55
56
57
import os
__author__ = "jon"
ROOT_WEBSERVER_DIRECTORY = ""
SECRET_KEY = ""
ERROR_LOG_LOCATION = "error.log"
MAIL_USERNAME = ""
MAIL_PASSWORD = ""
MAIL_DEFAULT_SENDER = ""
MAIL_SERVER = "smtp.gmail.com"
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
DATABASE_USERNAME = ""
DATABASE_PASSWORD = ""
DATABASE_LOCATION = ""
DATABASE_NAME = ""
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://" + DATABASE_USERNAME + ":" + DATABASE_PASSWORD + "@" + DATABASE_LOCATION + "/" + DATABASE_NAME
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, "db_repository")
SITE_ADMIN_USERNAME = ""
SITE_ADMIN_PASSWORD = ""
SITE_ADMIN_EMAIL = ""
SITE_GROUP_PASSWORD = ""
# Currently used to assess whether or not we need to fake job submission (i.e. no hpc is present)
HPC_DEBUG = "False"
LOCAL_WEBSERVER_PORT = "" # Default, however if debugging then flask normally starts it on port 5000
NETWORK_PATH_TO_WEBSERVER_FROM_HPC = ""
NETWORK_PATH_TO_HPC_FROM_WEBSERVER = ""
HPC_USERNAME = "" # Must have full permissions, i.e. ssh credentials to access from webserver
EXTERNAL_SFTP_PORT = "22"
# ======================== NOTE Everything below here should be OS independent paths (i.e. //) =========================
# Allows different relative path to be provided per environment - however, the contents should be identical (i.e. remote
# mount, sshfs, samba etc - they can also be exactly the same path if the webserver is executed from the HPC environ)
HPC_ROOT_PATH = ""
WEBSERVER_ROOT_PATH = ""
TEMP_DIRECTORY = "/"
SFTP_USER_ROOT_PATH = ""
# THIS CONFIGURATION IS PROVIDED FOR FLEXIBILITY BUT IT IS ASSUMED THAT THE FILE NAMES & STRUCTURE WILL BE MAINTAINED!
MANAGEMENT_SCRIPTS_PATH_AFTER_RELATIVE_ROOT = "scripts"
# Paths relative to the above
PIPELINE_DATA_PATH_AFTER_RELATIVE_ROOT = ""
SUBMISSION_DATA_PATH_AFTER_RELATIVE_ROOT = ""
SAMPLE_DATA_PATH_AFTER_RELATIVE_ROOT = ""
PROJECT_DATA_PATH_AFTER_RELATIVE_ROOT = ""
REFERENCE_DATA_PATH_AFTER_RELATIVE_ROOT = ""