gengx
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
php database/migrate_invitation_codes.php
|
||||
php database/migrate_guest_management.php
|
||||
php database/migrate_short_drama.php
|
||||
php database/run_short_drama_worker.php &
|
||||
exec php-fpm
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
[www]
|
||||
clear_env = no
|
||||
catch_workers_output = yes
|
||||
@@ -0,0 +1,6 @@
|
||||
expose_php = Off
|
||||
memory_limit = 512M
|
||||
upload_max_filesize = 100M
|
||||
post_max_size = 110M
|
||||
max_execution_time = 600
|
||||
date.timezone = Asia/Shanghai
|
||||
Reference in New Issue
Block a user