From aed0759eab08d44ea08e32f54397cd8c8ee6c61f Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 21 Jan 2021 16:47:03 +0100 Subject: [PATCH] nginx config --- Dockerfile | 1 + default.conf | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 default.conf diff --git a/Dockerfile b/Dockerfile index de23999..d765937 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ FROM nginx:stable +COPY default.conf /etc/nginx/conf.d/ COPY dist/hv-ui/* /usr/share/nginx/html/ diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..482f930 --- /dev/null +++ b/default.conf @@ -0,0 +1,10 @@ +server { + listen 80; + server_name hv-ui; + + location / { + location /usr/share/nginx/html; + try_files $uri $uri/ /index.html; + } +} +