install script add nginx & certbot

This commit is contained in:
arnaucube
2019-09-22 13:21:20 +02:00
parent f62633a789
commit a423155cd8
2 changed files with 12 additions and 4 deletions

View File

@@ -55,3 +55,15 @@ npm install -g http-server
echo "installing fzf fuzzy finder"
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# nginx
apt install nginx -y
# certbot
apt-get update
apt-get install software-properties-common -y
add-apt-repository universe -y
add-apt-repository ppa:certbot/certbot -y
apt-get update
apt-get install certbot python-certbot-nginx -y

View File

@@ -9,10 +9,6 @@ server {
location / {
proxy_pass http://localhost:PORT;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}
```