<gh_stars>0
from flask import Flask, render_template
import socket
app = Flask(__name__)

@app.route("/")
def hello():
    return render_template('page.html')

@app.route("/hostname")
def hostname():
    return socket.gethostname()

@app.route("/healthz")
def healthcheck():
    return "OK"

if __name__ == "__main__":
    app.run(host='0.0.0.0')

from flask import Flask, render_template
import socket
app = Flask(__name__)

@app.route("/")
def hello():
    return render_template('page.html')

@app.route("/hostname")
def hostname():
    return socket.gethostname()

@app.route("/healthz")
def healthcheck():
    return "OK"

if __name__ == "__main__":
    app.run(host='0.0.0.0')