Skip to content

Commit

Permalink
Merge pull request #49 from eftechcombr/40-api-endpoint
Browse files Browse the repository at this point in the history
Update default.conf
  • Loading branch information
eduardofraga authored Mar 19, 2024
2 parents bddce7e + 7a7634b commit 6b45635
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ server {
try_files $uri /index.php$is_args$args;
}

location /api {
rewrite ^/api/(.*)$ /apirest.php/$1 last;
}

location ~ ^/index\.php$ {
# the following line needs to be adapted, as it changes depending on OS distributions and PHP versions
# fastcgi_pass unix:/run/php/php-fpm.sock;
Expand All @@ -20,4 +24,4 @@ server {

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}

0 comments on commit 6b45635

Please sign in to comment.