Skip to content

Commit

Permalink
Fix nginx configuration fail syntax errors (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmack8001 authored Jun 28, 2020
1 parent e6dc3fe commit bf27f48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pi/firstboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ server {
include proxy_params;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://localhost:8080/socket.io;
}
Expand All @@ -270,14 +270,14 @@ server {
include proxy_params;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://localhost:8080/socket.io;
}
}
EOF

sudo sed -i 's/sendfile on;/client_max_body_size;\ \ 10m\n\tsendfile on;/g' /etc/nginx/nginx.conf
sudo sed -i 's/sendfile on;/client_max_body_size\ 10m;\n\tsendfile on;/g' /etc/nginx/nginx.conf

ln -s /etc/nginx/sites-available/picobrew.com.conf /etc/nginx/sites-enabled/picobrew.com.conf
rm /etc/nginx/sites-enabled/default
Expand Down

0 comments on commit bf27f48

Please sign in to comment.