azimuth
azimuth copied to clipboard
Create a production image for the front-end (nginx)
@christyler3030 I'm not an expert on NGINX, do you have some pointers?
I'm not sure how our users will be able to enter "their own" backend. Assuming a proxy file:
# nginx/proxy.conf
local localhost:8091
Do we ask our users to modify this file? Do we have an env-var that creates the mapping before starting nginx? What were you thinking?
From our discussions, we are trying to solve two problems:
- Map resources (Ex: local =>
http://localhost:8091, remote =>mycoolbackend.com) - Use NGINX to handle HTTPS, malformed requests, probing attack etc.
What would be ideal would be:
- Continue to develop
server.jsso that we can do the resource mapping there. - Setup very small nginx proxy that redirects all traffic to this small backend.
To me, the latter is less important and we should prioritize 1, which would enable users to run Azimuth on the Cloud, on a K8 server while hosting the frontend locally or somewhere else entirely.
Thoughts?