rebase www template

This commit is contained in:
2026-04-27 11:45:33 +02:00
parent 07bc5ffd9f
commit a42f1b87e9
27 changed files with 2574 additions and 4615 deletions
+2 -15
View File
@@ -10,22 +10,9 @@ server {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Clean URL rewrites - Map short URLs to actual HTML files
rewrite ^/dns$ /dns-lookup.html last;
rewrite ^/dns-lookup$ /dns-lookup.html last;
rewrite ^/whois$ /whois-lookup.html last;
rewrite ^/whois-lookup$ /whois-lookup.html last;
rewrite ^/mac$ /mac-lookup.html last;
rewrite ^/mac-lookup$ /mac-lookup.html last;
rewrite ^/subnet$ /subnet-calculator.html last;
rewrite ^/subnet-calculator$ /subnet-calculator.html last;
rewrite ^/asn$ /asn-lookup.html last;
rewrite ^/asn-lookup$ /asn-lookup.html last;
# Statische Dateien direkt ausliefern
# SPA: all routes fall back to index.html; static assets are served directly
location / {
# First try the exact URI, then with .html, then fall back to index.html
try_files $uri $uri.html $uri/ /index.html;
try_files $uri $uri/ /index.html;
}
# API-Anfragen an den Backend-Service weiterleiten