Expose AdminJS on nudentic.ir: nginx only proxied /api, so /admin never reached Nest.
This commit is contained in:
@@ -83,6 +83,21 @@ server {
|
||||
proxy_connect_timeout 300;
|
||||
}
|
||||
|
||||
# AdminJS (Nest, not under /api) — https://nudentic.ir/admin
|
||||
location /admin {
|
||||
proxy_pass http://dyolink_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
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_cache_bypass $http_upgrade;
|
||||
proxy_read_timeout 300;
|
||||
proxy_connect_timeout 300;
|
||||
}
|
||||
|
||||
location /health {
|
||||
access_log off;
|
||||
return 200 "healthy\n";
|
||||
|
||||
Reference in New Issue
Block a user