mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-23 10:33:51 +00:00
LitServe-based prompt injection detection server with a React monitoring dashboard. Serves HuggingFace classification models behind an OpenAI-compatible API with real-time metrics and GPU acceleration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
492 B
Nginx Configuration File
30 lines
492 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /health {
|
|
proxy_pass http://backend:8234;
|
|
}
|
|
|
|
location /models {
|
|
proxy_pass http://backend:8234;
|
|
}
|
|
|
|
location /metrics {
|
|
proxy_pass http://backend:8234;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://backend:8234;
|
|
}
|
|
|
|
location /v1/ {
|
|
proxy_pass http://backend:8234;
|
|
}
|
|
}
|