UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

32 lines (25 loc) 754 B
server { listen 443 ssl; server_name www.example.com; keepalive_timeout 70; ssl_certificate www.example.com.crt; ssl_certificate_key www.example.com.key; location ~ /proxy/(.*)/(.*)/(.*)$ { # ruleid: dynamic-proxy-scheme proxy_pass $1://$2/$3; } location ~* ^/internal-proxy/(?<proxy_proto>https?)/(?<proxy_host>.*?)/(?<proxy_path>.*)$ { internal; # ruleid: dynamic-proxy-scheme proxy_pass $proxy_proto://$proxy_host/$proxy_path ; proxy_set_header Host $proxy_host; } location ~ /proxy/(.*)/(.*)/(.*)$ { # ok: dynamic-proxy-scheme proxy_pass http://$2/$3/$1; } location ~ /proxy/(.*)/(.*)/(.*)$ { # ok: dynamic-proxy-scheme proxy_pass https://$1/$2/$3; } }