Powerpoint exploring the locations used in television show Time Clash
How to turn any dynamic website into a static site | 24.01.2018 | Artem Daniliants | LumoSpark
1. How to turn any dynamic
(CMS powered) website
into a static site
Artem Daniliants • LumoSpark
2. Traditional website architecture
Web Server
DNS server
Database
Scripting interpreter
Example: Amazon Route 53/CloudFlare
Example: Nginx, Apache
Example: PHP, Python, Perl
Example: MariaDB, PostgreSQL
22. Allow only public key authentication
nano -w /etc/ssh/sshd_config
# INFO: Find following lines in config and change them as follows
PasswordAuthentication no
UsePAM no
PermitRootLogin no
23. Create new user & setup sudo
useradd -m username
chsh -s /bin/bash username
apt-get install sudo
visudo
# INFO: Add following line
username ALL=(ALL) ALL
# Add public key to newly created user
mkdir /home/username/.ssh
nano -w /home/username/.ssh/authorized_keys
chmod 600 /home/username/.ssh/authorized_keys
chown -R username /home/username/.ssh
24. Enable Automatic Security Updates
apt-get install unattended-upgrades
dpkg-reconfigure --priority=low unattended-upgrades
# Follow instructions on the screen
25. Install Logwatch
apt-get install logwatch
nano -w /etc/cron.daily/00logwatch
# INFO: Replace “/usr/sbin/logwatch --output mail” with line below
/usr/sbin/logwatch --output mail --mailto you@gmail.com --detail
high