Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
buster: use nginx proxy
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Dec 6, 2017
1 parent 12b97df commit f246974
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions target/chroot/beagleboard.org-buster.sh
Expand Up @@ -199,32 +199,9 @@ install_git_repos () {
if [ -f /var/www/html/index.nginx-debian.html ] ; then if [ -f /var/www/html/index.nginx-debian.html ] ; then
rm -rf /var/www/html/index.nginx-debian.html || true rm -rf /var/www/html/index.nginx-debian.html || true


# location / { if [ -d /opt/scripts/distro/buster/nginx/ ] ; then
# # First attempt to serve request as file, then cp -v /opt/scripts/distro/buster/nginx/default /etc/nginx/sites-available/default
# # as directory, then fall back to displaying a 404. fi
# 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
fi fi


git_repo="https://github.com/prpplague/Userspace-Arduino" git_repo="https://github.com/prpplague/Userspace-Arduino"
Expand Down

0 comments on commit f246974

Please sign in to comment.