Configuring the Repository
Cloning the repository
Start off by cloning the Enotify Github repository
git clone https://github.com/Luciism/enotify
Setting up the repository
1. Rename the .env.example file to .env
- Linux
- Windows
mv .env.example .env
rename .env.example .env
2. Set environment variables
base_url: The base URL that you will be hosting your instance of Enotify's website on, including the protocol. In this example we will be usinghttps://example.com.flask_secret_key: A randomly generated string used by the website to encrypt session cookies.website_port: The port that the website will be served on (8000by default).database_encryption_key: A randomly generated string used to encrypt sensitive data in the database.POSTGRES_HOST: The hostname of the postgres database instance you are using for Enotify.POSTGRES_PORT: The port of the postgres database instance you are using for Enotify.POSTGRES_DB: The name of the postgres database instance you are using for Enotify.POSTGRES_USER: The username for the postgres database instance you are using for Enotify.POSTGRES_PASSWORD: The password for the postgres database instance you are using for Enotify.
tip
Secrets keys can be generated with python:
- Linux
- Windows
python3 -c "import os; print(os.urandom(50).hex())"
py -c "import os; print(os.urandom(50).hex())"