Аutomation of routine tasks on a new server for humans. Only verified configs and best practices.
Just git clone
and run it!
Clone this repo:
foo@bar:~$ git clone https://github.com/koddr/vsac.git
Run ./init.sh
from root dir:
foo@bar:~$ cd vsac
foo@bar:~$ sudo chmod +x ./init.sh
foo@bar:~$ sudo ./init.sh [OPTIONS]
--webserver [NAME]
— web server name, you want to install (support:nginx
);--python [VERSION]
— Python 3 version, you want to install (support:3.5.x
,3.6.x
,3.7.x
,3.8.x
)--postgresql [DATABASE]
— PostgreSQL with database name, you want to install
user nginx;
+ worker_processes auto;
events {
+ use epoll;
worker_connections 1024;
+ multi_accept on;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
error_log /var/log/nginx/error.log crit;
+ server_tokens off;
+ keepalive_timeout 30;
+ keepalive_requests 100;
+ reset_timedout_connection on;
+ client_body_timeout 10;
+ send_timeout 2;
sendfile on;
tcp_nodelay on;
+ tcp_nopush on;
+ client_max_body_size 1m;
+ open_file_cache max=200000 inactive=20s;
+ open_file_cache_valid 30s;
+ open_file_cache_min_uses 2;
+ open_file_cache_errors on;
+ gzip on;
+ gzip_comp_level 5;
+ gzip_disable "msie6";
+ gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml image/gif image/png image/jpeg image/x-icon image/webp;
include /etc/nginx/conf.d/*.conf;
}
- [SSL] Let's Encrypt — https://github.com/Neilpang/acme.sh
- Idea and active development by Vic Shóstak (aka Koddr).
If you want to say «thank you» or/and support active development Virtual Server Auto Config
:
- Add a GitHub Star to project.
- Twit about project on your Twitter.
- If you want, send to project's author some money via PayPal: @paypal.me/koddr.
MIT