Webserver to store and deliver client encrypted content.
Using:
- Flask
- Orator
- Postgresql
Create database and user in postgresql
create database mysecrets;
create user mysecret with encrypted password '<very-secret-passwd>';
grant all privileges on database mysecrets to mysecret;
Install mysecrets-backend as mysecrets user
git clone [email protected]:MatthiasWiesner/mysecrets_backend.git
cd mysecrets_backend
chown -R mysecrets: .
# pipenv (installed with pip3) needs to be installed and the necessary libs as well
su mysecrets -c '/usr/local/bin/pipenv install'
su mysecrets -c '/usr/local/bin/pipenv shell'
# within pipenv shell
python db.py migrate
python db.py db:seed
# as root
cp ./resources/mysecrets-backend.service /etc/systemd/system/mysecrets-backend.service
systemctl daemon reload
systemctl enable mysecrets-backend.service
systemctl start mysecrets-backend.service