Implement IPv6 capability (#826)

* Implement IPv6 capability

Enables uWSGI to listen for IPv6 requests also.
This is done by defaulting to [::] as the listen address, which creates a dual stack socket, which can respond to IPv4 and IPv6 requests simultaneously.
Furthermore a config option is adden to overwrite this default, if a user so desires.

* Add LD_SERVER_HOST to .env.sample

Additionally fix the default name of the LD_SERVER_PORT variable, which was falsely LD_HOST_PORT here.

* revert .env.sample

---------

Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@googlemail.com>
This commit is contained in:
itz-Jana
2024-09-16 13:18:18 +02:00
committed by GitHub
parent ffaaf0521d
commit c22e30cbda
2 changed files with 8 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env bash
# Bootstrap script that gets executed in new Docker containers
LD_SERVER_HOST="${LD_SERVER_HOST:-[::]}"
LD_SERVER_PORT="${LD_SERVER_PORT:-9090}"
# Create data folder if it does not exist
@@ -32,4 +33,4 @@ if [ "$LD_DISABLE_BACKGROUND_TASKS" != "True" ]; then
fi
# Start uwsgi server
exec uwsgi --http :$LD_SERVER_PORT uwsgi.ini
exec uwsgi --http $LD_SERVER_HOST:$LD_SERVER_PORT uwsgi.ini