Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file #404

Open
Krock21 opened this issue Feb 4, 2025 · 3 comments
Open

Configuration file #404

Krock21 opened this issue Feb 4, 2025 · 3 comments

Comments

@Krock21
Copy link

Krock21 commented Feb 4, 2025

Describe the feature

I want to be able to run wstunnel [server | client] --configuration wstunnel.conf

  • wstunnel.conf can contain port mappings and other configurations
  • changing wstunnel.conf leads to configuration reload (Like --tls-certificate and --tls-private-key file change does)

Describe the reason for such feature

Command line has a limit, which matters if you map many ports (multiple -L or -R arguments)
Use case: mapping range of ports to a different range of ports

Describe alternatives you've considered

An alternative feature that may help is to allow mapping of port ranges

@erebe
Copy link
Owner

erebe commented Feb 4, 2025

Hello,

For port-mapping you can already do it by using the restriction config https://github.com/erebe/wstunnel/blob/main/restrictions.yaml#L54

@calvin2021y
Copy link

Is there a way to pass http-upgrade-path-prefix and restrict-http-upgrade-path-prefix from Configuration file?

@erebe
Copy link
Owner

erebe commented Feb 6, 2025

You can set restrict-http-upgrade-path-prefix with https://github.com/erebe/wstunnel/blob/main/restrictions.yaml#L12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants