Increasing ulimit and file descriptors limit on Ubuntu 18.04

Most UNIX-like operating systems, including Linux and macOS, provide ways to limit and control the usage of system resources such as threads, files, and network connections on a per-process and per-user basis. These “ulimits” prevent single users from using too many system resources. ( https://docs.mongodb.com/…

Force redirect to https for Nginx and Apache

A simple way to set redirect to https for any site on your nginx/apache configuration. Apache RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] Nginx server { listen 80; server_name ${DOMAIN}; return 301 https://$server_name$request_uri; }…