From 1ddf9fe813d9be161a3202d7ee7d8f61cd46b0aa Mon Sep 17 00:00:00 2001 From: Rafi Greenberg Date: Wed, 3 Feb 2021 10:21:14 -0800 Subject: [PATCH] nginx things --- Dockerfile | 1 + nginx.conf | 16 ++++++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 70e7b18..561d10b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,3 +8,4 @@ RUN npm run build FROM nginx:alpine COPY --from=builder build /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index f38bf38..fcc1f33 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,13 +1,9 @@ -events { worker_connections 1024; } +server { + listen 80; + root /usr/share/nginx/html; + include /etc/nginx/mime.types; -http { - server { - listen 80; - root /usr/share/nginx/html; - include /etc/nginx/mime.types; - - location / { - try_files $uri /index.html; - } + location / { + try_files $uri /index.html; } } \ No newline at end of file