Adds custom nginx configuration file

This commit is contained in:
Aaron Louie 2020-02-01 10:48:01 -05:00
parent 796cfae248
commit 4a0fd867f3
2 changed files with 12 additions and 0 deletions

View File

@ -14,3 +14,4 @@ RUN npm install && \
### STAGE 2: Run ###
FROM nginx:alpine
COPY --from=builder /crc-bpmn/dist/cr-connect-bpmn /usr/share/nginx/html/
COPY --from=builder /crc-bpmn/nginx.conf /etc/nginx/conf.d/default.conf

11
nginx.conf Normal file
View File

@ -0,0 +1,11 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
include /etc/nginx/extra-conf.d/*.conf;
}