import os

from flask import Flask
from flask_sse import sse

app = Flask(__name__)
app.config["REDIS_URL"] = os.environ.get(
    "REDIS_URL",
    "redis://localhost/2"
)
app.register_blueprint(sse, url_prefix='/events')

@@ -81,33 +81,74 @@
 __)%0A
-app.config%5B%22REDIS_URL%22%5D
+redis_host =  os.environ.get(%22KV_HOST%22, %22localhost%22)%0Aredis_port
  =
+ 
  os.
@@ -163,53 +163,120 @@
 get(
-%0A    %22REDIS_URL%22,%0A    %22redis://localhost/2%22%0A)
+%22KV_PORT%22, %225379%22)%0Aredis_url = %22redis://%25s:%25s/2%22 %25 (redis_host, redis_port)%0A%0Aapp.config%5B%22REDIS_URL%22%5D = redis_url
 %0Aapp

Use right env variable to build redis url