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

Dockerize frontend + nginx #8

Open
wants to merge 9 commits into
base: rest
Choose a base branch
from
Open

Dockerize frontend + nginx #8

wants to merge 9 commits into from

Conversation

natsyz
Copy link
Contributor

@natsyz natsyz commented Aug 30, 2023

What's here:

  1. nginx config: ssl + load balancer (not used)
  2. dockerfile that dockerize frontend served with nginx

Update:
frontend will directly access backend instead of nginx proxy because somewhat i keep getting 403 error for websocket through nginx

Comment on lines 33 to 39
server {
listen 8000;

location / {
proxy_pass http://backend;
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location ~ ^/api(/.*)$ {
proxy_pass http://destination_ip$1;
}

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

Successfully merging this pull request may close these issues.

2 participants