/client-reflection

A web application that reflects the connecting user information

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

client-reflection

A web application that reflects the connecting user information.

Installation

$ pip install -r requirements.txt

Usage

To run the server normally:

$ python server.py

To run as a daemon:

$ gunicorn server:app --workers 2 --daemon

Let's Encrypt

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

Configure run.sh File

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