Skip to content

Commit 61b5252

Browse files
committed
add env example
1 parent 1887a70 commit 61b5252

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

apps/browser-proxy/.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
AWS_ACCESS_KEY_ID="<aws-access-key-id>"
2+
AWS_ENDPOINT_URL_S3="<aws-endpoint-url-s3>"
3+
AWS_S3_BUCKET=postgres-new-storage
4+
AWS_SECRET_ACCESS_KEY="<aws-secret-access-key>"
5+
AWS_REGION=us-east-1
6+
# enable PROXY protocol support
7+
#PROXIED=true
8+
WILDCARD_DOMAIN=browser.staging.db.build

apps/browser-proxy/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ websocketServer.on('connection', (socket, request) => {
8181

8282
// we need to use proxywrap to make our tcp server to enable the PROXY protocol support
8383
const net = (
84-
process.env.FLY_APP_NAME ? (await import('findhit-proxywrap')).default.proxy(nodeNet) : nodeNet
84+
process.env.PROXIED ? (await import('findhit-proxywrap')).default.proxy(nodeNet) : nodeNet
8585
) as typeof nodeNet
8686

8787
const tcpServer = net.createServer()

0 commit comments

Comments
 (0)