Dockerfile and nginx conf to deploy

This commit is contained in:
2026-05-15 00:05:14 -06:00
parent dcc6c35b2e
commit c1342a9c58
5 changed files with 57 additions and 44 deletions
+27
View File
@@ -0,0 +1,27 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
absolute_redirect off;
port_in_redirect off;
location / {
try_files $uri $uri/ $uri.html =404;
}
location ~* \.(?:css|js|woff2?|ttf|otf|eot|svg|png|jpg|jpeg|gif|webp|avif|ico)$ {
expires 30d;
access_log off;
add_header Cache-Control "public, max-age=2592000, immutable";
}
error_page 404 /404.html;
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
}