Initial commit: Profice Home website with Dockerfile and nginx config

This commit is contained in:
2026-04-09 22:50:19 +02:00
commit c656bf9461
13 changed files with 1271 additions and 0 deletions

26
nginx.conf Normal file
View File

@@ -0,0 +1,26 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Redirect requests with .html extension to clean URL
location ~* ^/(.+)\.html$ {
return 301 /$1$is_args$args;
}
# Serve clean URLs by trying $uri, then $uri.html
location / {
try_files $uri $uri.html $uri/ =404;
}
# Cache static assets
location ~* \.(png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Gzip
gzip on;
gzip_types text/html text/css application/javascript image/svg+xml;
}