diff --git a/entrypoint.sh b/entrypoint.sh index d95a75e..986fa1b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/ash +if ! [ -z $NGINX_LISTEN_SOCKET ]; then + sed -i 's#listen 80#listen unix:/var/run/nginx.sock#' /etc/nginx/conf.d/default.conf +fi nginx touch /data/torrents diff --git a/nginx.conf b/nginx.conf index d2e49a2..45f514d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,6 @@ server { - listen 80; - server_name localhost; + listen 80; + server_name localhost; root /srv/www/webui/;