From a423155cd8f0cb45876847848e5f2256f24b4ea5 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sun, 22 Sep 2019 13:21:20 +0200 Subject: [PATCH] install script add nginx & certbot --- install-new-server.sh | 12 ++++++++++++ nginx-conf/README.md | 4 ---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/install-new-server.sh b/install-new-server.sh index a58d42c..89738e9 100644 --- a/install-new-server.sh +++ b/install-new-server.sh @@ -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 diff --git a/nginx-conf/README.md b/nginx-conf/README.md index f29a7f6..1ced519 100644 --- a/nginx-conf/README.md +++ b/nginx-conf/README.md @@ -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; } } ```