mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 16:15:04 +02:00
tidy py sdk examples
This commit is contained in:
5
.flake8
5
.flake8
@ -1,3 +1,6 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
exclude = zrok_api, build
|
exclude =
|
||||||
|
./sdk/python/sdk/zrok/zrok_api/**,
|
||||||
|
./build/**
|
||||||
|
|
||||||
|
@ -46,6 +46,6 @@ Next, we run the server which ends up calling the following:
|
|||||||
@zrok.decor.zrok(opts=zrok_opts)
|
@zrok.decor.zrok(opts=zrok_opts)
|
||||||
def runApp():
|
def runApp():
|
||||||
from waitress import serve
|
from waitress import serve
|
||||||
# the port is only used to integrate Zrok with frameworks that expect a "hostname:port" combo
|
# the port is only used to integrate zrok with frameworks that expect a "hostname:port" combo
|
||||||
serve(app, port=bindPort)
|
serve(app, port=bindPort)
|
||||||
```
|
```
|
||||||
|
@ -13,7 +13,7 @@ bindPort = 18081
|
|||||||
@zrok.decor.zrok(opts=zrok_opts)
|
@zrok.decor.zrok(opts=zrok_opts)
|
||||||
def runApp():
|
def runApp():
|
||||||
from waitress import serve
|
from waitress import serve
|
||||||
# the port is only used to integrate Zrok with frameworks that expect a "hostname:port" combo
|
# the port is only used to integrate zrok with frameworks that expect a "hostname:port" combo
|
||||||
serve(app, port=bindPort)
|
serve(app, port=bindPort)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user