Spaces:
Sleeping
Sleeping
Delete nginx.conf
Browse files- nginx.conf +0 -32
nginx.conf
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
server {
|
| 2 |
-
listen 8443;
|
| 3 |
-
server_name localhost;
|
| 4 |
-
|
| 5 |
-
# Proxy headers
|
| 6 |
-
proxy_set_header Host $host;
|
| 7 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 8 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 9 |
-
proxy_set_header X-Forwarded-Proto $scheme;
|
| 10 |
-
|
| 11 |
-
# API endpoint
|
| 12 |
-
location /api/ {
|
| 13 |
-
proxy_pass http://localhost:8444/;
|
| 14 |
-
proxy_http_version 1.1;
|
| 15 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 16 |
-
proxy_set_header Connection 'upgrade';
|
| 17 |
-
proxy_cache_bypass $http_upgrade;
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
# Health check endpoint
|
| 21 |
-
location /health {
|
| 22 |
-
access_log off;
|
| 23 |
-
return 200 'OK';
|
| 24 |
-
add_header Content-Type text/plain;
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
# Error handling
|
| 28 |
-
error_page 500 502 503 504 /50x.html;
|
| 29 |
-
location = /50x.html {
|
| 30 |
-
root /usr/share/nginx/html;
|
| 31 |
-
}
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|