Tunneling
Less than 1 minute
Tunneling
Any application on the KUBE can be exposed to the internet through automatic tunneling.
Change property modules.tunnel
to true
in dx.yml
and redeploy the application.
version: 1
modules:
- type: dxos:type/app
name: example-app
display_name: Tasks List
description: Mock application
tags:
- tasks
- todo
- productivity
build:
command: pnpm run build
outdir: 'out'
version: 1.2.3
tag: latest
tunnel: true
Â
Redeploy
dx app publish
The command will print the public URL of the application if tunneling is enabled. 🚀
To configure live tunnels on the KUBE directly, use the dx
CLI.
Tip
If using a DXOS application template the deploy command is available as a script pnpm run deploy
.
Caution
Tunnels will remain open while the KUBE service is running.
Note
Tunnel URLs are stable. When KUBE restarts, any tunneled applications will remain on the same public URLs.