first deployment of kikomiko with url photos
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
8d98304137
commit
ae3ed7c7b7
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user