Add support for tuf metadata endpoints

This commit is contained in:
Evan Cordell 2017-02-13 14:14:44 -05:00
parent 6436444274
commit 9affe193db
7 changed files with 78 additions and 26 deletions

View file

@ -5,13 +5,6 @@ echo 'Starting nginx'
NAMESERVER=`cat /etc/resolv.conf | grep "nameserver" | awk '{print $2}' | tr '\n' ' '`
echo "resolver $NAMESERVER valid=10s;" > /conf/nginx/resolver.conf
if [ -f /conf/stack/ssl.key ]
then
echo "Using HTTPS"
/usr/sbin/nginx -c /conf/nginx/nginx.conf
else
echo "No SSL key provided, using HTTP"
/usr/sbin/nginx -c /conf/nginx/nginx-nossl.conf
fi
/usr/sbin/nginx -c /conf/nginx/nginx.conf
echo 'Nginx exited'