mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
install script add nginx & certbot
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user