Skip to content

Multiple tunnel ? #31

Answered by amalshaji
Yuss9 asked this question in Q&A
Apr 9, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, it is possible by adding them as services in the portr config file

portr config edit

This should open your default config file. Then add your required ports as services

server_url: example.com
ssh_url: example.com:2222
secret_key: <secret-key>
tunnels:
  - name: frontend
    subdomain: my-frontend
    port: 3000
  - name: prisma-studio
    subdomain: my-prisma-studio
    port: 5555

This assumes both the services are HTTP. If you want to run TCP, add TCP type at the end

    subdomain: my-prisma-studio
    port: 5555
    type: tcp

Then start both services using portr start frontend prisma-studio

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yuss9
Comment options

Answer selected by amalshaji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants