Skip to content

Commit 480a125

Browse files
committed
fix: configure lit-auth-server to use environment variables for port and host
1 parent 6629304 commit 480a125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/lit-auth-server/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { createLitAuthServer } from '@lit-protocol/auth-services';
22
import { startAuthServiceWorker } from '@lit-protocol/auth-services';
33

44
const litAuthServer = createLitAuthServer({
5-
port: Number(3001),
6-
host: '0.0.0.0',
5+
port: Number(process.env['PORT']) || 3000,
6+
host: process.env['AUTH_SERVER_HOST'],
77
network: process.env['NETWORK'],
88
litTxsenderRpcUrl: process.env['LIT_TXSENDER_RPC_URL'] as string,
99
litTxsenderPrivateKey: process.env['LIT_TXSENDER_PRIVATE_KEY'],

0 commit comments

Comments
 (0)