Skip to content

Commit

Permalink
small updates do flazk
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 26, 2023
1 parent d4307c5 commit 82ff940
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sample/flask-of-ziti/helloFlazk.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,18 @@
app = Flask(__name__)
bind_opts = {} # populated in main


@openziti.zitify(bindings={
':18080': bind_opts,
})
@openziti.zitify(bindings={':18080': bind_opts,})
def runApp():
from waitress import serve
print("starting server on OpenZiti overlay")
#the port is only used to integrate OpenZiti with frameworks that expect a "hostname:port" combo
serve(app,port=18080)


@app.route('/')
def hello_world(): # put application's code here
print("received a request to /")
return 'Have some Ziti!'


if __name__ == '__main__':
bind_opts['ztx'] = sys.argv[1]
bind_opts['service'] = sys.argv[2]
Expand Down

0 comments on commit 82ff940

Please sign in to comment.