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
|
#!/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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
root /srv/www/webui/;
|
root /srv/www/webui/;
|
||||||
|
|
||||||
|
|
Reference in a new issue