This commit is contained in:
5
frontend/Dockerfile
Normal file
5
frontend/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM node AS builder
|
||||
|
||||
FROM nginx
|
||||
COPY ./default.conf /etc/nginx/conf.d/default.conf
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
14
frontend/default.conf
Normal file
14
frontend/default.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 3003;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /events {
|
||||
proxy_buffering off;
|
||||
proxy_pass http://127.0.0.1:3002/events;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user