Skip to content
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

Create a production image for the front-end (nginx) #187

Open
gabegma opened this issue Jul 25, 2022 · 2 comments
Open

Create a production image for the front-end (nginx) #187

gabegma opened this issue Jul 25, 2022 · 2 comments

Comments

@gabegma
Copy link
Contributor

gabegma commented Jul 25, 2022

No description provided.

@Dref360
Copy link
Contributor

Dref360 commented Aug 4, 2022

@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?

@Dref360
Copy link
Contributor

Dref360 commented Aug 10, 2022

From our discussions, we are trying to solve two problems:

  1. Map resources (Ex: local => http://localhost:8091, remote => mycoolbackend.com)
  2. Use NGINX to handle HTTPS, malformed requests, probing attack etc.

What would be ideal would be:

  1. Continue to develop server.js so that we can do the resource mapping there.
  2. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants