Skip to main content

Serving File Directories

The ngrok agent supports the file:// scheme in a forwarding URL. When you use the file:// scheme, the ngrok agent serves local file system directories by using its own built-in file server, no separate server needed. It works just like python3 -m http.server, but it is built directly into the ngrok agent.

Paths in file:// URLs must be specified as absolute paths.

info

Serving directory files is not supported with:

  • SSH
  • JavaScript
  • Python
  • Rust
  • Kubernetes Operator

Serve files in /var/log

Loading…

Serve files on Windows

Loading…

Serve files in your current working directory

Serving the current working directory is not supported via the agent configuration file.