Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions root/etc/nginx/template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,23 @@ http {
fastcgi_index index.php;
}

location = /api {
default_type application/json;
return 404 '{"error":"not found"}';
}
location = /feed {
default_type application/json;
return 404 '{"error":"not found"}';
}
location = /backup {
default_type application/json;
return 404 '{"error":"not found"}';
}
location ~ ^.*\/(?:api|feed|backup)(?:$|\/) {
default_type application/json;
return 404 '{"error":"not found"}';
}

# Health check
location /health {
return 200 'healthy';
Expand Down