Add nginx stuff

This commit is contained in:
Tyler Perkins 2024-11-16 20:14:13 -05:00
parent ea76d15383
commit d384757b2f
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,7 @@
FROM nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf
COPY ./public /var/www/static
RUN nginx -t

25
nginx.conf Normal file
View File

@ -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;
}
}
}