ngrok / ngrok-python

Embed ngrok secure ingress into your Python apps with a single line of code.
https://ngrok.com
Apache License 2.0
103 stars 19 forks source link

ASGI Wrapper #9

Closed bobzilladev closed 1 year ago

bobzilladev commented 1 year ago
> python -m ngrok
usage: ngrok [-h] [--authtoken AUTHTOKEN] [--session-metadata SESSION_METADATA] [--allow-cidr ALLOW_CIDR]
             [--basic-auth username password] [--circuit-breaker CIRCUIT_BREAKER] [--compression]
             [--deny-cidr DENY_CIDR] [--domain DOMAIN] [--forwards-to FORWARDS_TO] [--metadata METADATA]
             [--mutual-tlsca MUTUAL_TLSCA] [--oauth-provider OAUTH_PROVIDER]
             [--oidc issuer-url client-id client-secret] [--allow-emails ALLOW_EMAILS]
             [--allow-domains ALLOW_DOMAINS] [--scopes SCOPES] [--proxy-proto {,1,2}]
             [--remove-request-header REMOVE_REQUEST_HEADER]
             [--remove-response-header REMOVE_RESPONSE_HEADER] [--request-header header value]
             [--response-header header value] [--scheme {HTTPS,HTTP}]
             [--webhook-verification provider secret] [--websocket-tcp-conversion] [--host HOST]
             [--port PORT] [--uds UDS] [--fd FD] [--config CONFIG] [--bind BIND]
             {gunicorn,uvicorn}

Uvicorn bind cases

python -m ngrok uvicorn djangosite.asgi:application --host 0.0.0.0 python -m ngrok uvicorn djangosite.asgi:application --host 127.0.0.1 python -m ngrok uvicorn djangosite.asgi:application --host 192.168.2.66 python -m ngrok uvicorn djangosite.asgi:application --host localhost python -m ngrok uvicorn djangosite.asgi:application --host :: python -m ngrok uvicorn djangosite.asgi:application --port 1234 python -m ngrok uvicorn djangosite.asgi:application --host localhost --port 1234 python -m ngrok uvicorn djangosite.asgi:application --host :: --port 1234 python -m ngrok uvicorn djangosite.asgi:application --uds /tmp/uvicorn.sock

Gunicorn bind cases

python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind 0.0.0.0 python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind 127.0.0.1 python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind 192.168.2.66 python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind localhost python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind '[::]:1234' python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind :1234 python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind localhost:1234 python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker --bind unix:/tmp/gunicorn.sock PORT=1234 python -m ngrok gunicorn djangosite.asgi:application -k uvicorn.workers.UvicornWorker

bobzilladev commented 1 year ago

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.