Go to file
Felipe M 5c5578974d Added SSL support
Closes #1
2021-01-19 11:59:53 +01:00
templates Added CORS test view 2020-11-12 11:18:06 +01:00
.gitignore Initial 2020-02-28 17:34:59 +01:00
.python-version Initial 2020-02-28 17:34:59 +01:00
Makefile Initial 2020-02-28 17:34:59 +01:00
README.md Added SSL support 2021-01-19 11:59:53 +01:00
app.py Added SSL support 2021-01-19 11:59:53 +01:00
local-run.sh Initial 2020-02-28 17:34:59 +01:00
requirements-dev.txt Added /request endpoint 2020-03-16 16:46:02 +01:00
requirements.txt Added SSL support 2021-01-19 11:59:53 +01:00

README.md

Simple OpenShift application

This is a simple OpenShift application for debugging purposes. You can deploy it with the python:3.6 builder and it should work out of the box.

It provides several routes for testing on the index page.

Feel free to send patches.

Configuration

Variable name Default Description
SERVE_SSL off Use to tell the app to serve SSL instead of plain text. Check below

Serving using SSL

There are two ways of enabling SSL on this test application, either with an on-the-fly self-signed certificate provided by werkzeug or by providing the certificates using a secret on a fixed path.

Serving using an on-the-fly certificate

Just set the SERVE_SSL variable to adhoc.

Serving using certificates provided by a secret

Set the SERVE_SSL variable to secret and mount a secret with a tls.key and tls.crt under /tmp/app.