Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.1 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.1 KB

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