Skip to content

Commit

Permalink
only allow Oauthlib HTTP if we're in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
sebovzeoueb committed Feb 20, 2025
1 parent 56824f3 commit ba5957a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Binary file modified bun_installer/assets/docker_compose.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions concierge_shiny/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
theme=shinyswatch.theme.pulse,
)

os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = (
"1" # this is to use keycloak in localhost, TODO: be able to toggle
)
# we're only able to run HTTP in VSCode so we need to allow Oauthlib to use HTTP if we're in the VSCode environment
if os.environ["VSCODE_INJECTION"] == "1":
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"


def server(input: Inputs, output: Outputs, session: Session):
Expand Down
1 change: 1 addition & 0 deletions dev_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
host=host,
ssl_keyfile=os.getenv("WEB_KEY"),
ssl_certfile=os.getenv("WEB_CERT"),
log_level="trace",
)
else:
run_app(
Expand Down
1 change: 1 addition & 0 deletions docker_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
host="0.0.0.0",
ssl_keyfile="web_certs/key.pem",
ssl_certfile="web_certs/cert.pem",
log_level="trace",
)
else:
run_app(app_dir="concierge_shiny", port=15130, launch_browser=False, host="0.0.0.0")

0 comments on commit ba5957a

Please sign in to comment.