Skip to content

nanbul98/flex-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Server set up. Ubuntu 16.04

  1. apt-get update && apt-get upgrade
  2. (perl locales error? https://www.thomas-krenn.com/en/wiki/Perl_warning_Setting_locale_failed_in_Debian)
  3. adduser username --force-badname --ingroup sudo
  4. add public key authentication
  5. set up basic firewall (ufw) and allow OpenSSH, turn on rate limiting ufw limit ssh/tcp, install fail2ban
  6. disable password authentication and root login /etc/ssh/sshd_config
  7. time: set timezone sudo dpkg-reconfigure tzdata and install ntp.

Nginx Postrgres uWSGI Python/Django stack

  1. Install stack: this for postgresql, and this for the rest of the stack.
  2. Remove Apache2 from port 80 (if using)
  3. ...permissions of socket...

Additional Security

  1. Add SSL,
  2. redirect to https in mysite_nginx.conf, server 80 block (return 301 https://$server_name$request_uri;),
  3. Add forward secuirty
  4. Automatic security updates

Other

  1. Django DEBUG = False

About

Website for Timberline's Flex Activities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 46.0%
  • HTML 38.3%
  • JavaScript 13.3%
  • CSS 2.4%