hestiacp/nginx/mirrors.tpl

43 lines
1.1 KiB
Smarty
Raw Normal View History

2023-01-27 18:00:42 +08:00
#=========================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
# https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work #
#=========================================================================#
server {
listen %ip%:%proxy_port%;
2023-03-13 19:30:37 +08:00
listen [::]:%proxy_port%;
2023-01-27 18:00:42 +08:00
server_name %domain_idn% %alias_idn%;
root /home/tunasync/mirrors;
location ~ ^/(ferenos) {
index index.html index.htm;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
error_page 500 502 503 504 /50x.html;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.(?!well-known\/|file) {
deny all;
return 404;
}
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
}