How to setup Cloudflare tunnel for remote file viewing? #118
Answered
by
jasondbranding
0xMag1ci4n
asked this question in
Q&A
-
|
I'm running OpenACP on a remote server and want to view code files from my phone. How do I set up Cloudflare tunnel to expose the file viewer? |
Beta Was this translation helpful? Give feedback.
Answered by
jasondbranding
Mar 29, 2026
Replies: 1 comment
-
|
OpenACP has built-in tunneling to expose local ports to the internet and view files remotely via Monaco Editor. Configure tunnel in {
"tunnel": {
"enabled": true,
"port": 3100,
"provider": "cloudflare",
"maxUserTunnels": 5,
"storeTtlMinutes": 60,
"auth": {
"enabled": false
}
}
}
CLI commands: openacp tunnel add 3100 # Create tunnel on port 3100
openacp tunnel add 8080 --label dev # Create tunnel with label
openacp tunnel list # List active tunnels
openacp tunnel stop 3100 # Stop tunnelWith tunneling enabled, you get a file viewer with Monaco Editor — syntax highlighting, diffs, and markdown preview from your phone. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
0xMag1ci4n
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenACP has built-in tunneling to expose local ports to the internet and view files remotely via Monaco Editor.
Configure tunnel in
~/.openacp/config.json:{ "tunnel": { "enabled": true, "port": 3100, "provider": "cloudflare", "maxUserTunnels": 5, "storeTtlMinutes": 60, "auth": { "enabled": false } } }provider: Choosecloudflare(default),ngrok,bore, ortailscaleport: Local port to expose (default: 3100)maxUserTunnels: Maximum tunnels per user (default: 5)storeTtlMinutes: How long to keep tunnel info (default: 60 minutes)CLI commands: