You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
server {
|
|
listen 80;
|
|
root /var/www/public;
|
|
|
|
location / {
|
|
index index.php index.html;
|
|
}
|
|
|
|
location /api {
|
|
if (!-e $request_filename){
|
|
rewrite ^/api(.*)$ /api.php?s=$1 last; break;
|
|
}
|
|
}
|
|
|
|
location /adminapi {
|
|
if (!-e $request_filename){
|
|
rewrite ^/adminapi(.*)$ /adminapi.php?s=$1 last; break;
|
|
}
|
|
}
|
|
|
|
location /appapi {
|
|
if (!-e $request_filename){
|
|
rewrite ^/appapi(.*)$ /appapi.php?s=$1 last; break;
|
|
}
|
|
}
|
|
|
|
location /callback {
|
|
if (!-e $request_filename){
|
|
rewrite ^/callback(.*)$ /callback.php?s=$1 last; break;
|
|
}
|
|
}
|
|
|
|
location /m {
|
|
try_files $uri $uri/ /m/index.html;
|
|
}
|
|
|
|
location ~ \.php(/|$) {
|
|
include fastcgi_params;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
|
fastcgi_index index.php;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
}
|
|
}
|