mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
ensure chat is sorted
This commit is contained in:
parent
7ab8e9e13a
commit
dddf5933d2
4 changed files with 39 additions and 5 deletions
31
nginx_test.conf
Normal file
31
nginx_test.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
client_max_body_size 200m;
|
||||
|
||||
if ($request_method = POST ) {
|
||||
rewrite /upload /do_upload last;
|
||||
break;
|
||||
}
|
||||
|
||||
location /do_upload {
|
||||
fastcgi_pass api:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /app/src/public/upload.php;
|
||||
}
|
||||
|
||||
index index.php;
|
||||
|
||||
try_files $uri /index.php?$query_string /index.php;
|
||||
|
||||
location ~ ^(.+?\.php)(/.*)?$ {
|
||||
fastcgi_param PATH_INFO $2;
|
||||
fastcgi_pass api:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /app/src/public/index.php;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue