-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaximal.tf
77 lines (67 loc) · 1.65 KB
/
maximal.tf
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
70
71
72
73
74
75
76
77
module "maximal" {
source = "../"
stage = "stage"
# domain = {
# name = "example.com"
# deploy_to_subdomain = "something"
# catch_all_email = "[email protected]"
# }
website = {
source_dir = "./src"
cache_files_regex = ".*-hashed.(js|css)"
content_security_policy = "some-header"
rewrites = {
"robots.txt" = "robots.deny.txt"
}
}
http = {
extra_allow_origins = ["http://localhost:12345"] # cors of http api allows origin
api = {
source_dir = "./src"
handler = "main.httpApi"
runtime = "nodejs18.x"
memory_size = 256
environment = {
NODE_OPTIONS = "--enable-source-maps"
}
}
rpc = {
source_dir = "./src"
handler = "main.httpRpc"
runtime = "nodejs18.x"
memory_size = 256
environment = {
NODE_OPTIONS = "--enable-source-maps"
}
}
}
ws = {
rpc = {
source_dir = "./src"
handler = "main.wsRpc"
runtime = "nodejs18.x"
memory_size = 256
environment = {
NODE_OPTIONS = "--enable-source-maps"
}
}
event_authorizer = {
source_dir = "./src"
handler = "main.wsEventAuth"
runtime = "nodejs18.x"
memory_size = 256
environment = {
NODE_OPTIONS = "--enable-source-maps"
}
}
}
auth = {
# image_base64_content = "filebase64(auth.jpg)"
# css_content = "file(auth.css)"
extra_redirect_urls = ["http://localhost:12345"] # auth can redirect to that website
}
providers = {
aws = aws
aws.us-east-1 = aws.us-east-1
}
}