first deployment of kikomiko with url photos

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shayan khoshrou
2026-10-19 19:10:57 +02:00
co-authored by Cursor
parent 8d98304137
commit ae3ed7c7b7
159 changed files with 59509 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
server {
listen 80;
server_name kikomiko.ir;
root /var/www/kikomiko;
index index.html;
location = /fa { return 301 /$is_args$args; }
location ~ ^/fa/(.*)$ { return 301 /$1$is_args$args; }
# Shared product template for all slugs (existing + newly imported)
location /products/ {
try_files $uri $uri/ /products/index.html;
add_header Cache-Control "no-cache";
}
location / {
try_files $uri $uri/ =404;
add_header Cache-Control "no-cache";
}
# Nginx static files support byte ranges for the scroll-driven video.
location /videos/ { try_files $uri =404; }
location /api/ { return 503; }
location /i/ { return 404; }
error_page 404 /404.html;
}
server {
listen 80;
server_name www.kikomiko.ir;
return 301 http://kikomiko.ir$request_uri;
}