This commit is contained in:
2026-08-05 15:56:08 +08:00
parent 01729b1e0b
commit 2d9e2376b6
106 changed files with 10007 additions and 253 deletions
+40
View File
@@ -0,0 +1,40 @@
server {
listen 80;
server_name _;
root /var/www/backend/public;
index index.html;
client_max_body_size 100m;
location ^~ /api {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_param SCRIPT_FILENAME /var/www/backend/public/index.php;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param QUERY_STRING s=$uri&$args;
fastcgi_buffering off;
fastcgi_read_timeout 600s;
}
location = /admin {
return 301 /admin/;
}
location ^~ /admin/ {
try_files $uri $uri/ /admin/index.html;
}
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|webp|woff2?)$ {
expires 7d;
access_log off;
try_files $uri =404;
}
location ~ \.php$ {
return 404;
}
}