Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
/ vsac Public archive

✅ Аutomation of routine tasks on a new server for humans. Only verified configs and best practices. Just git clone and run it!

License

Notifications You must be signed in to change notification settings

koddr/vsac

Repository files navigation

✅ Virtual Server Auto Config

version linux license

The Why?

Аutomation of routine tasks on a new server for humans. Only verified configs and best practices.

Just git clone and run it!

For GNU/Linux Debian 9 Stretch

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]

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

Nginx configuration

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;
}

Other usefull Bash scripts for automatization

Enjoy the configured server 🎉

serverless

Developers

Project assistance

If you want to say «thank you» or/and support active development Virtual Server Auto Config:

  1. Add a GitHub Star to project.
  2. Twit about project on your Twitter.
  3. If you want, send to project's author some money via PayPal: @paypal.me/koddr.

License

MIT

About

✅ Аutomation of routine tasks on a new server for humans. Only verified configs and best practices. Just git clone and run it!

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages