mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#{"rootDirectory":"public","phpVersion":"8.0"}
|
||||
#{"rootDirectory":"public","phpVersion":"8.2"}
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
@@ -47,6 +47,10 @@ server {
|
||||
fastcgi_param PHP_VALUE "{{php_settings}}";
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
expires max;
|
||||
|
||||
Reference in New Issue
Block a user