Fix static serving with Staticfile

This commit is contained in:
2026-05-14 21:26:02 +03:00
parent 4fc27b0ab9
commit 5b05abe654
2 changed files with 1 additions and 24 deletions

View File

@@ -0,0 +1 @@
push_state: enabled

View File

@@ -1,24 +0,0 @@
events {
worker_connections 1024; # Maximum simultaneous connections per worker
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost; # Or your domain name
location / {
root /var/www/html; # Directory where your files are located
index index.html index.htm;
}
# Custom error page for 404
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
}
}