Permalink
Browse files

buster: use nginx proxy

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
RobertCNelson committed Dec 6, 2017
1 parent 12b97df commit f246974c3a0cefc32b927c7eceb90dfaf58810e9
Showing with 3 additions and 26 deletions.
  1. +3 −26 target/chroot/beagleboard.org-buster.sh
@@ -199,32 +199,9 @@ install_git_repos () {
if [ -f /var/www/html/index.nginx-debian.html ] ; then
rm -rf /var/www/html/index.nginx-debian.html || true
# location / {
# # First attempt to serve request as file, then
# # as directory, then fall back to displaying a 404.
# try_files $uri $uri/ =404;
# autoindex on;
# }
#
# location /bone101 {
# proxy_pass http://127.0.0.1:8000;
# }
echo "diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default" > /tmp/nginx.patch
echo "index c841ceb..4f977d8 100644" >> /tmp/nginx.patch
echo "--- a/etc/nginx/sites-available/default" >> /tmp/nginx.patch
echo "+++ b/etc/nginx/sites-available/default" >> /tmp/nginx.patch
echo "@@ -49,6 +49,7 @@ server {" >> /tmp/nginx.patch
echo -e " \t\t# First attempt to serve request as file, then" >> /tmp/nginx.patch
echo -e " \t\t# as directory, then fall back to displaying a 404." >> /tmp/nginx.patch
echo -e " \t\ttry_files \$uri \$uri/ =404;" >> /tmp/nginx.patch
echo -e "+\t\tautoindex on;" >> /tmp/nginx.patch
echo -e " \t}" >> /tmp/nginx.patch
echo " " >> /tmp/nginx.patch
echo -e " \t# pass PHP scripts to FastCGI server" >> /tmp/nginx.patch
cd /
patch -p1 < /tmp/nginx.patch
if [ -d /opt/scripts/distro/buster/nginx/ ] ; then
cp -v /opt/scripts/distro/buster/nginx/default /etc/nginx/sites-available/default
fi
fi
git_repo="https://github.com/prpplague/Userspace-Arduino"

0 comments on commit f246974

Please sign in to comment.