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

Non-random localhost port #4

Open
MitPitt opened this issue Jul 5, 2024 · 2 comments
Open

Non-random localhost port #4

MitPitt opened this issue Jul 5, 2024 · 2 comments

Comments

@MitPitt
Copy link

MitPitt commented Jul 5, 2024

Serving the saved zips is easy with a reverse proxy like caddy.

But it seems to give apps random ports on run. If I could predefine these, that would be nice.

@titoBouzout
Copy link
Member

The port is random but was seeded to the full path, I just changed it to be seeded to the zip filename instead, so it becomes more predictable. Would that work for you?

Also, the address is bind to 0.0.0.0 instead of localhost (which can still be opened in localhost)

@MitPitt
Copy link
Author

MitPitt commented Jul 5, 2024

Got it thanks. Full path or filename is ok.

Actually now that you mention it, I need it on localhost only and not 0.0.0.0. Because I intend to use a login thing in my reverse proxy, which won't protect my app if people can bypass it using <server's ip address>:<port> instead of going via the reverse proxy (e.g. example.com).

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

No branches or pull requests

2 participants