-
Notifications
You must be signed in to change notification settings - Fork 39
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
Replay port specified is not used in Proxy mode #760
Comments
Lines 1049 to 1066 in 6ef47bc
sets the |
This is the intended behavior, as long as Link header of mementos and TimeMaps have the proxy value in them. It will be the job of a reverse proxy to make the service running on a different port accessible the proxy URI. |
@ibnesayeed I figured this. Did we want to provide a way for the user that is running the replay service to specify a port beyond the ability to proxy? |
The proxy flag is there to allow to run the service behind a reverse proxy or in a private network as app servers are not necessarily security hardened, so it is better to terminate TLS on a front server, deal with necessary loadbalancing, apply any firewalls, and only then forward the traffic to the app servers. Honestly speaking, with many popular reverse proxy services we might not even need to explicitly know the front URI, instead, it can be identified implicitly from certain headers (provided, the reverse proxy server is setting those headers up, which, many do). |
@ibnesayeed Do we want to account for the scenario where one might want to simply run the localhost service in a port beyond we dictate (now 2016, prev. 5000)? |
I thought we already allow customization of port number. If we do not then we should make it an option. |
@ibnesayeed Perhaps we do but there is not indication of it in the ipwb replay help: |
Then we should add |
@ibnesayeed Do you think that the custom port should be written to the ipwb config JSON?
Which approach would you rather take? |
This approach allows the replay to run on the specified port but the Link header for mementos does not use this value. It instead uses the value in the ipwb config. However, we might not want to overwrite the port in the config for this one-off specification. Let's see which way @ibnesayeed prefers in #760 before we move forward in remedying the issue.
I have my reservations about having a config file the way it is right now. That being said, of course we would want to reflect changes in that while we have it. |
@ibnesayeed |
Also, @ibnesayeed, if you have any suggestions on how a persistent configuration can be retained between runs, I am open to hear them. |
My biggest concern with our config file approach is that it is not really a config file, but a state caching file. A config file would be something that is manually created/updated to avoid supplying configuration parameters from the CLI, but it should not be mutable (essentially, accessed in read-only mode) by the system. That being said, since we are storing and overwriting session information in our current approach, we should continue that practice with ports too for now to be consistent. |
The service is only accessible at port 2016. Is this expected behavior or in fact a bug, @ibnesayeed?
The text was updated successfully, but these errors were encountered: