water-fountains / proximap

a responsive Angular 6 web app for finding nearby fountains
https://beta.water-fountains.org
Other
16 stars 9 forks source link

production client should only use port 443 / 80 #256

Open ralfhauser opened 5 years ago

ralfhauser commented 5 years ago

this hopefully solves the root cause of #255

ralfhauser commented 5 years ago

See also https://tickets.iway.ch/index.php?/Tickets/Ticket/View/769063

With some distance, I still don't understand architecturally why subdomains are needed and this cannot be solved with just different localPaths on the same host and port ?

mmmatthew commented 5 years ago

Good question. I am not familiar with traffic redirection, but if it might be possible. I have never seen that kind of architecture, though.

ralfhauser commented 5 years ago

why would you need traffic redirection and not just multiple local paths for different purposes ?

I guess I miss the picture completely

mmmatthew commented 5 years ago

https://serverfault.com/questions/61925/apache-map-port-to-url might be like what you are suggesting. It looks possible but more complicated. We have 3 webservers (apache for static files, and 2x Express for datablue beta and stable) that need to run independently, and it is my understanding that they all need different ports to listen on.

ralfhauser commented 5 years ago

1) "Express" cannot serve static files? 2) if otherwise wouldn't we need 2 static file servers ?