LocalXpose on Windows Not Launching Tunnels from Config File
Hello,
I'm using the Windows version of LocalXpose, and I'm trying to automatically launch two tunnels at system startup by running a batch file.
I have the following batch script set to run on startup:
batCopyEditREM @echo off
CD\localxpose-clean
REM Set the token as an environment variable
set ACCESS_TOKEN=********************************
REM Launch the tunnels from the config
loclx tunnel config -f "C:\localxpose-clean\config_fixed.yaml"
pause
And here is the content of my config_fixed.yaml
:
yamlCopyEditversion: "1.0"
tunnels:
remote:
type: tcp
region: us
to: 127.0.0.1:35000
reserved_endpoint: us.loclx.io:65000
web:
type: http
region: us
to: 127.0.0.1:35001
reserved_endpoint: cceweb.loclx.io
When I run the batch file, I get the following error:
luaCopyEditC:\Localxpose-Clean>loclx tunnel config -f "C:\localxpose-clean\config_fixed.yaml"
Error: invalid tunnel type [tunnels]
It seems like LocalXpose isn't recognizing the config file or the command syntax. I'm not sure if it's a problem with the YAML file or the CLI version I'm using.
β My goal: I want LocalXpose to automatically launch the two tunnels defined above every time the computer boots up.
Any help on how to get this working correctly would be greatly appreciated!
Thanks in advance!
Post Information
Subscribe to post
Get notified by email when there are changes.
Upvoters
Post Details