From 10eeefe34a4e96250e3d402c7bf916cb0c606cd2 Mon Sep 17 00:00:00 2001 From: Gelevb <48049770+Gelevb@users.noreply.github.com> Date: Tue, 21 Jul 2020 09:31:09 +0300 Subject: [PATCH 01/12] Update app.py --- app/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 12cd6ba5..2e03b32f 100644 --- a/app/app.py +++ b/app/app.py @@ -1,5 +1,6 @@ from flask import Flask,render_template import socket +import os app = Flask(__name__) @@ -8,7 +9,8 @@ def index(): try: host_name = socket.gethostname() host_ip = socket.gethostbyname(host_name) - return render_template('index.html', hostname=host_name, ip=host_ip) + pass=(os.environ['PASSWORD']) + return render_template('index.html', hostname=host_name, ip=host_ip, secret=pass) except: return render_template('error.html') From a079e89b2aa5d00567ea0a8b0439f059e09eb6d4 Mon Sep 17 00:00:00 2001 From: Gelevb <48049770+Gelevb@users.noreply.github.com> Date: Tue, 21 Jul 2020 09:31:45 +0300 Subject: [PATCH 02/12] Update index.html --- app/templates/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/index.html b/app/templates/index.html index 63ed175b..d3ba67af 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -6,5 +6,6 @@
The hostname of the container is {{ hostname }} and its IP is {{ ip }}. + And the secret is: {{ secret }} -