From d384757b2fa15dd6ab85cf2d8bee64c7b0f5aad3 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 16 Nov 2024 20:14:13 -0500 Subject: [PATCH] Add nginx stuff --- Dockerfile | 7 +++++++ nginx.conf | 25 +++++++++++++++++++++++++ static/{Resume.pdf => resume.pdf} | Bin 3 files changed, 32 insertions(+) create mode 100644 nginx.conf rename static/{Resume.pdf => resume.pdf} (100%) diff --git a/Dockerfile b/Dockerfile index e69de29..a66f0fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM nginx:latest + +COPY nginx.conf /etc/nginx/nginx.conf + +COPY ./public /var/www/static + +RUN nginx -t diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..e795fd5 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,25 @@ +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + server { + listen 80; + #server_name localhost; + root /var/www/static; + + index index.html; + + location / { + try_files $uri $uri/ =404; + } + + } + +} diff --git a/static/Resume.pdf b/static/resume.pdf similarity index 100% rename from static/Resume.pdf rename to static/resume.pdf