Skip to content

Instantly share code, notes, and snippets.

@Daethyra
Created January 27, 2025 03:43
Show Gist options
  • Save Daethyra/62926809dde809c0425f99764da95bd5 to your computer and use it in GitHub Desktop.
Save Daethyra/62926809dde809c0425f99764da95bd5 to your computer and use it in GitHub Desktop.
Starts an Ngrok HTTPS endpoint w/ OAuth
version: 3
agent:
authtoken:
api_key:
connect_timeout: 30s
console_ui: iftty
console_ui_color: black
heartbeat_interval: 1m
heartbeat_tolerance: 90s
log_format: term
endpoints:
- name: testcloud
url: https://ligma-chugma.ngrok-free.app
metadata: "edge=ligma_chugma" # Labels converted to metadata
upstream:
url: http://host.docker.internal:80
traffic_policy:
on_http_request:
- actions:
- type: oauth
config:
provider: google
- type: rewrite
config:
headers:
Host: "ligma-chugma.ngrok-free.app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment