-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfly.toml
More file actions
72 lines (58 loc) · 1.92 KB
/
fly.toml
File metadata and controls
72 lines (58 loc) · 1.92 KB
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
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
app = 'testserver-host'
primary_region = 'cdg'
[build]
image = 'httptoolkit/testserver:latest'
[env]
PORTS = '8080'
METRICS_PORT = '9090'
TRUST_PROXY_PROTOCOL = 'true'
CERT_CACHE_DIR = '/usr/src/app/cert_dir'
# If deploying a separate instance and wanting real certificates, customize these:
ROOT_DOMAIN = 'testserver.host'
PROACTIVE_CERT_DOMAINS = 'testserver.host,example.testserver.host,revoked.testserver.host,expired.testserver.host,expired--revoked.testserver.host'
ACME_PROVIDER = 'google' # or 'letsencrypt', 'zerossl'
# Set ACME_ACCOUNT_KEY secret (PEM format) - see src/tls-certificates/acme.ts for details
# Enable in-process DNS server on port 53 for wildcard certs via DNS-01 (requires NS delegation)
DNS_SERVER = 'true'
[[services]]
protocol = "tcp"
internal_port = 8080
[[services.ports]]
port = "80"
handlers = ["proxy_proto"]
[[services.ports]]
port = "443"
handlers = ["proxy_proto"]
[[services.ports]]
start_port = 8000
end_port = 10000
handlers = ["proxy_proto"]
# Continually check /echo can return a valid HTTPS response
[[services.http_checks]]
interval = 10000
grace_period = "5s"
method = "get"
path = "/echo"
protocol = "https"
timeout = 2000
tls_server_name = "testserver.host"
tls_skip_verify = true # We don't verify by default, so this works for fresh empty-volume deploys
# DNS server
[[services]]
protocol = "udp"
internal_port = 53
[[services.ports]]
port = 53
# If we want to scale out within a single region, where there's already an app in the same region
# using this volume, we need to fork it and create another with the same name.
[mounts]
source = "cert_data"
destination = "/usr/src/app/cert_dir"
[metrics]
port = 9090
path = "/metrics"
[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 2