From 840a9bba86a86da322f12c31f155c3cfa1e0720b Mon Sep 17 00:00:00 2001 From: Spagnolo Gasper Date: Sat, 24 Dec 2022 17:57:59 +0100 Subject: [PATCH] qf --- Dockerfile | 1 + nginx.conf | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 nginx.conf diff --git a/Dockerfile b/Dockerfile index 730871c..13835ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN hugo FROM nginx:alpine +COPY nginx.conf /etc/nginx/nginx.conf COPY --from=build /src/public /usr/share/nginx/html EXPOSE 80 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..e6034d6 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,14 @@ +events{} + +http { + include /etc/nginx/mime.types; + server { + listen 80; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + location / { + try_files $uri $uri/ /index.html; + } + } +}