Skip to content

Commit cac8b13

Browse files
kiatngsreichel
andauthored
Inserted sample nginx config for API in api_nginx-frontend.conf (#4382)
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
1 parent 094137c commit cac8b13

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dev/openmage/nginx-frontend.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ server {
153153
location /api/ { return 404; }
154154
location /api.php { return 404; }
155155

156+
# Clients use the frontend to call API
157+
#location /api {
158+
# root $webroot;
159+
# rewrite ^/api/(\w+).*$ /api.php?type=$1 last;
160+
# set $fastcgi_script_filename $webroot/api.php;
161+
# set $fastcgi_script_name2 /api.php;
162+
# try_files NOT_EXISTS @php-fpm;
163+
#}
164+
156165
# Protect dot files no matter where they are located
157166
location ~ /\. { return 404; }
158167

0 commit comments

Comments
 (0)