List Blob Endpoint
This commit is contained in:
@@ -102,6 +102,19 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
# List blobs endpoint - GET /list/<pubkey>
|
||||
location ~ "^/list/([a-f0-9]{64}).*$" {
|
||||
# Pass to FastCGI application for processing
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/ginxsom.fcgi;
|
||||
fastcgi_pass fastcgi_backend;
|
||||
|
||||
# Only allow GET method for list requests
|
||||
if ($request_method !~ ^(GET)$ ) {
|
||||
return 405;
|
||||
}
|
||||
}
|
||||
|
||||
# Health check endpoint
|
||||
location /health {
|
||||
access_log off;
|
||||
|
||||
Reference in New Issue
Block a user