add option for nginx to listen on socket
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-04-22 13:23:36 +00:00
parent 0363273f7a
commit 66907f236a
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
#!/bin/ash #!/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 nginx
touch /data/torrents touch /data/torrents

View file

@ -1,6 +1,6 @@
server { server {
listen 80; listen 80;
server_name localhost; server_name localhost;
root /srv/www/webui/; root /srv/www/webui/;