Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.22 KB

File metadata and controls

56 lines (41 loc) · 1.22 KB

Ngrok Tunnel Setup

This project uses ngrok to expose local services to the internet. This is particularly useful for testing webhooks, mobile apps, or sharing your local progress.

Configuration

The tunnels are configured in ngrok.yml at the root of the project.

Services Exposed:

Usage

Using Make (Recommended)

# Start all tunnels
make tunnel

# Start specific tunnels
make tunnel-core
make tunnel-school
make tunnel-teacher
make tunnel-data

Using pnpm

# Start all tunnels
pnpm tunnel

# Start specific tunnels
pnpm tunnel:core
pnpm tunnel:school
pnpm tunnel:teacher
pnpm tunnel:data

Important: Environment Variables

When using ngrok, you often need to update your .env files so that the application knows its public URL (for authentication redirects, etc.).

For example, in apps/core/.env:

BETTER_AUTH_URL=https://your-ngrok-subdomain.ngrok-free.app
APP_URL=https://your-ngrok-subdomain.ngrok-free.app

Remember to restart your Docker containers after changing .env files:

make docker-up