Skip to content

Commit

Permalink
Created using Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejskorski committed May 30, 2023
1 parent d9e0daf commit 37a7ad7
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions ngrok_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"name": "ngrok-demo.ipynb",
"authorship_tag": "ABX9TyOkh7RS1br3aSrsI95rKYEa",
"authorship_tag": "ABX9TyOCZHsPvOHMNcfHkwhlJV2g",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -38,6 +37,15 @@
"id": "sQhieIXP2miX"
}
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "gPJ8Qu5u8aki"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -87,7 +95,7 @@
"id": "0Wf0_2QXIRXp",
"outputId": "aec8c950-5b55-4879-d50f-64f3b38d1d3a"
},
"execution_count": 1,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand All @@ -109,8 +117,8 @@
"# Terminate open tunnels if exist\n",
"ngrok.kill()\n",
"\n",
"# Setting the authtoken (optional)\n",
"NGROK_AUTH_TOKEN = \"<Get your authtoken from https://dashboard.ngrok.com/auth>\"\n",
"# Setting the authtoken\n",
"NGROK_AUTH_TOKEN = \"Get your authtoken from https://dashboard.ngrok.com/auth\"\n",
"ngrok.set_auth_token(NGROK_AUTH_TOKEN)\n",
"\n",
"# Open an HTTPs tunnel on port 5000 for http://localhost:5000\n",
Expand All @@ -126,8 +134,7 @@
{
"cell_type": "code",
"source": [
"# with OAuth 2.0 authorization:\n",
"\n",
"# add OAuth 2.0 authentication:\n",
"!ngrok http 5000 --oauth=google --log=stdout --log-level=info"
],
"metadata": {
Expand All @@ -154,15 +161,6 @@
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "FyKOy9Rr6JzO"
},
"execution_count": null,
"outputs": []
}
]
}

0 comments on commit 37a7ad7

Please sign in to comment.