Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 883 Bytes

SERVERSETUP.md

File metadata and controls

61 lines (41 loc) · 883 Bytes

Server Setup

Install MariaDB!?

sudo apt-get install mariadb-server mariadb-client libmariadb-dev pkg-config -y

DB timezone thing

mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql mysql

Create DataBase

CREATE DATABASE <database-name> CHARACTER SET utf8;

Move DataBases!?

Do Not Do This But

Store data in a JSON file

python manage.py dumpdata > data.json

Load data

python manage.py loaddata data.json

Install pandoc

sudo apt-get install pandoc -y

Using letsencrypt

Install dependency

sudo apt install certbot python3-certbot-nginx -y

Generate certificate and associate it

sudo certbot --nginx -d <example.com>

Auto renew the certificate

sudo systemctl status certbot.timer
sudo certbot renew --dry-run        # test if auto renewal works