Files
VPS-scripts_Ubuntu-Web-V1/README.md
2019-08-28 11:16:01 +02:00

67 lines
1.7 KiB
Markdown

### To get started:
```
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/installer.sh
bash installer.sh
```
#### To set Netdata to monitor plugins:
Reinstall netdata manualy
```
apt install curl
bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)
```
#### This sript uses the folowing repos's as dependencies:
* VPS-scripts/Ubuntu-Backup
* VPS-scripts/Ubuntu-Cockpit
* VPS-scripts/Ubuntu-FTP
###### Nginx Brotli donwload
https://git.ictmaatwerk.com/deb/nginx-brotli/
https://github.com/TimVNL/debian-setup-scripts
https://serverfault.com/questions/527630/what-is-the-different-usages-for-sites-available-vs-the-conf-d-directory-for-ngi
https://gist.github.com/TimVNL/b22cbdeea4b6f438ae5e90f75afed838
PHPMyAdmin handmatig updaten vanwege errors:
https://devanswers.co/manually-upgrade-phpmyadmin/
Werkend NGINX server block voor de reverse proxy:
```
server {
listen 80;
root /var/www/host.name/html;
index index.php index.html index.htm;
server_name host.name www.host.name;
location / {
proxy_pass http://server_ip:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
}
location ~ \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)(\\n|\?ver=[0-9.])$ {
return 200;
}
location ~ /\.ht {
deny all;
}
#listen 443 ssl;
#ssl_certificate /etc/letsencrypt/live/host.name/fullchain.pem;
#ssl_certificate_key /etc/letsencrypt/live/host.name/privkey.pem;
#include /etc/letsencrypt/options-ssl-nginx.conf;
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
```