Skip to content

Commit

Permalink
Provide mechanism for cloud proxy to out of of listening on ipv6 address
Browse files Browse the repository at this point in the history
Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano committed Sep 9, 2024
1 parent a4b8bc5 commit 547cc7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/cloud/proxy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ else
exit 1
fi

if [ -n "PL_IPV6_DISABLED" ]; then
sed -i -e "/IPV6_DISABLED_MARKER/d" /usr/local/openresty/nginx/conf/nginx.conf
fi

/usr/bin/openresty -g "daemon off;"
2 changes: 1 addition & 1 deletion src/cloud/proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ http {

# This is the default fallback server if none of the subdomains match.
server {
listen [::]:56000 default_server;
listen [::]:56000 default_server; # IPV6_DISABLED_MARKER
listen 56000;
server_name _;

Expand Down

0 comments on commit 547cc7a

Please sign in to comment.