Browse Source

install script add nginx & certbot

master
arnaucube 5 years ago
parent
commit
a423155cd8
2 changed files with 12 additions and 4 deletions
  1. +12
    -0
      install-new-server.sh
  2. +0
    -4
      nginx-conf/README.md

+ 12
- 0
install-new-server.sh

@ -55,3 +55,15 @@ npm install -g http-server
echo "installing fzf fuzzy finder" echo "installing fzf fuzzy finder"
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install ~/.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

+ 0
- 4
nginx-conf/README.md

@ -9,10 +9,6 @@ server {
location / { location / {
proxy_pass http://localhost:PORT; 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;
} }
} }
``` ```

Loading…
Cancel
Save