Open MitPitt opened 4 months ago
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
)
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
).
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.