Skip to content

Commit a20e17b

Browse files
committed
Enable proxy protocol on Fly deployment
1 parent e581b92 commit a20e17b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fly.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ primary_region = 'cdg'
88

99
[env]
1010
PORTS = '8080'
11+
TRUST_PROXY_PROTOCOL = 'true'
1112
CERT_CACHE_DIR = '/usr/src/app/cert_dir'
1213

1314
# If deploying a separate instance and wanting real certificates, customize these:
@@ -24,6 +25,9 @@ primary_region = 'cdg'
2425
protocol = "tcp"
2526
internal = 8080
2627

28+
[services.proxy_proto_options]
29+
version = "v1"
30+
2731
[[services.ports]]
2832
port = "80"
2933
[[services.ports]]

0 commit comments

Comments
 (0)