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

Add hostport to use qrcp in local server with reverse proxy #184

Closed
wants to merge 1 commit into from

Conversation

mattn
Copy link
Contributor

@mattn mattn commented Nov 4, 2020

Added hostport option to display really acceptable host:port via reverse proxy.

Fixes #169

If you think that FQDN is that and hostport should be passed to listen instead, please let me known.

@claudiodangelis
Copy link
Owner

Hello @mattn, thanks for this contribution. I didn't have time to review it yet, will hopefully do over the weekend.

Thanks,
C

@claudiodangelis
Copy link
Owner

claudiodangelis commented Jan 19, 2021

I'm not too much convinced about the name of the flag.
Considering the following cases, I would rather go with something like --baseurl:

Case Args Printed URL
  • no reverse proxy
-i tun0 -p 8080 http://10.8.0.1:8080/send/A1s3
  • no reverse proxy
  • tls certs
--tls-(cert,key...) -i tun0 -p 8080 https://10.8.0.1:8080/send/A1s3
  • reverse proxy
  • target is localhost:8080
--baseurl http://example.com -i lo -p 8080 http://example.com/send/A1s3
  • reverse proxy
  • target is localhost:8080
  • target on custom location
--baseurl http://example.com/qrcp -i lo -p 8080 http://example.com/qrcp/send/A1s3
  • reverse proxy
  • reverse proxy port 3000
  • target is localhost:8080
--baseurl http://example.com:3000 -i lo -p 8080 http://example.com:3000/send/A1s3

Basically, if baseurl is passed, other parameters that control the printed URL (i.e.: --secure) should be ignored.
What do you think?

@claudiodangelis
Copy link
Owner

I will close this for now.

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

Successfully merging this pull request may close these issues.

Hide port in QRCode to use qrcp behind a reverse proxy
2 participants