Skip to content

Commit

Permalink
Merge pull request #232 from d47081/add-env-ipv4-6-interface-config
Browse files Browse the repository at this point in the history
add IPv4/IPv6 interface config (dev only) #231
  • Loading branch information
programarivm authored Dec 11, 2023
2 parents 52d3e1f + 3d2a131 commit 46bc4a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ TCP_PORT=8080

WS_PORT=8080

# IPv4
WS_ADDRESS=0.0.0.0

# IPv6
# WS_ADDRESS=[::]

WSS_ALLOWED=www.chesslablab.com
WSS_PORT=8443
3 changes: 2 additions & 1 deletion cli/dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
new WebSocket()
)
),
$_ENV['WS_PORT']
$_ENV['WS_PORT'],
$_ENV['WS_ADDRESS']
);

$server->run();

0 comments on commit 46bc4a5

Please sign in to comment.