add option for nginx to listen on socket
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0363273f7a
commit
66907f236a
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /srv/www/webui/;
|
||||
|
||||
|
|
Reference in a new issue