oduwsdl / MemGator

A Memento Aggregator CLI and Server in Go
https://memgator.cs.odu.edu/api.html
MIT License
55 stars 11 forks source link

Remove timemap and timegate flags #74

Closed ibnesayeed closed 8 years ago

ibnesayeed commented 8 years ago

Two flags were initially introduced to independently customize timemap and timegate base URL for rewriting. This was useful where MemGator was not full featured and one might want to advertise a different service to off load certain responsibilities. However, it is not needed anymore and as far as we know it was never utilized. Additionally, it creates confusion and needed better documentation to explain the purpose. The --service flag on the other hand is very useful, especially when the MemGator is running behind a reverse proxy or load balancer, so we will keep that and will remove --timegate and --timemap flags.

-g, --timegate=http://{SERVICE}/timegate  TimeGate base URL - default based on service URL
-m, --timemap=http://{SERVICE}/timemap    TimeMap base URL - default based on service URL
-s, --service=http://{HOST}[:{PORT}]      Service base URL - default based on host & port