forked from aws-samples/aws-healthimaging-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfg.py
49 lines (45 loc) · 1.77 KB
/
cfg.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
# Application Configuration
# Note: changing the APP_NAME will result in a new stack being provisioned
APP_NAME = "S3SCP"
APP_VERSION = "version 0.3"
CFN_STACK_DESCRIPTION = "S3StoreSCP (" + APP_VERSION + ")"
DEPLOY_REGION="us-east-1"
RECEIVE_BUCKET_NAME = "" # optional. Name of an existing bucket in the same region as the application deployment. If empty a new bucket will be created.
# VPC options
VPC_CIDR = "10.29.0.0/16" # cidr for the vpc that will be provisioned.
PUBLIC_LOAD_BALANCER = False # If this is set to True, the NLB will have a public Internet IP address
ALLOW_NON_TLS_PORT = True # allow security group access to the non-encrypted port
ALLOWED_PEERS = {
# access from the provisioned VPC is allowed, specify additional allowed peers:
#"172.31.0.0/16", # Allow from a subnet, in a peered VPC or remote private network.
#"123.123.123.123/32", # Allow access from individual IP address, public or private
#"0.0.0.0/0", # Allow access from anywhere
}
# Application Options
SCP_PORT = 11112 # non-TLS service port
STUNNEL_PORT = 11113 # TLS service port
ENVIRONMENT = {
"CREATE_METADATA": False,
"GZIP_FILES": False,
"GZIP_LEVEL": 5,
"ADD_STUDYUID_PREFIX": False,
"S3_UPLOAD_WORKERS": 10,
"DICOM_PREFIX": "DICOM",
"METADATA_PREFIX": "METADATA",
"CSTORE_DELAY_MS": 0,
"LOG_LEVEL": "INFO",
"BOTO_MAX_POOL_CONNECTIONS": 50,
"SCP_PORT": SCP_PORT,
"STUNNEL_PORT": STUNNEL_PORT,
"DIMSE_TIMEOUT": 30,
"MAXIMUM_ASSOCIATIONS": 20,
"MAXIMUM_PDU_SIZE": 0,
"NETWORK_TIMEOUT": 60
}
# Fargate task defintion parameters
TASK_CPU=2048
TASK_MEMORY_MIB=4096
TASK_COUNT=1
AUTOSCALE_MAX_TASKS=10
# Enable below if ssh access to the containers is required (useful for debugging).
TASK_ENABLE_EXEC_COMMAND=False