Add non Docker deployment entrypoints
This commit is contained in:
@@ -11,6 +11,18 @@ server {
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
|
||||
location /ai-agent-admin/basic-api/ {
|
||||
rewrite ^/ai-agent-admin/basic-api/(.*) /$1 break;
|
||||
proxy_pass http://backend:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 60s;
|
||||
}
|
||||
|
||||
location /basic-api/ {
|
||||
rewrite ^/basic-api/(.*) /$1 break;
|
||||
proxy_pass http://backend:8000;
|
||||
@@ -42,6 +54,12 @@ server {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
}
|
||||
|
||||
location /ai-agent-admin/ {
|
||||
try_files $uri $uri/ /ai-agent-admin/index.html;
|
||||
expires -1;
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
@@ -53,7 +71,7 @@ server {
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
error_page 404 /index.html;
|
||||
error_page 404 /ai-agent-admin/index.html;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
Reference in New Issue
Block a user