Edit: 2020. Jun 25.
As seen on LinkedIn by a member: uxdesignmaster
| # read more here http://tautt.com/best-nginx-configuration-for-security/ | |
| # to generate your dhparam.pem file, run in the terminal | |
| # openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
| # don't send the nginx version number in error pages and Server header | |
| server_tokens off; | |
| # config to don't allow the browser to render the page inside an frame or iframe | |
| # and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking |
Edit: 2020. Jun 25.
As seen on LinkedIn by a member: uxdesignmaster
| # First install oh-my-bash. | |
| # Path to oh-my-bash installation. | |
| export OSH=/home/d00mil/.oh-my-bash | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-bash is loaded. | |
| OSH_THEME="brainy" | |
| # Uncomment the following line to use case-sensitive completion. |
| #! /bin/bash | |
| # Update and install the latest software | |
| sudo apt update | |
| sudo apt upgrade -y | |
| # may need to reboot, look for the message *** System restart required *** after the login @ MOTD | |
| # sudo reboot | |
| # Set the machine hostname |