A web application that reflects the connecting user information.
$ pip install -r requirements.txt
To run the server normally:
$ python server.py
To run as a daemon:
$ gunicorn server:app --workers 2 --daemon
In order to setup a ceritifcate for the app simply run let's encrypt:
$ sudo apt-get update
$ sudo apt-get install letsencrypt
$ sudo letsencrypt certonly -a standalone --register-unsafely-without-email
This app has a convenient approach to run the web application - using gunicorn. Sometimes with advances flags, gunicorn
can be somewhat cumbersome, so I created a run.sh
file that wraps all the desired functionalities from the tool, into a single runnable file. Create a new run.sh
file by running the following command:
$ cp run-template.sh run.sh
Now, fill in the relevant information, such as youre domain name, desired log file etc.
To run the app, first make the run.sh
file executeable, and run it:
$ chmod +x run.sh
$ sudo ./run.sh