fix: Authentication mode and nginx header configuration for API access
- Change appsettings.json Authentication.Mode from 'FailClosed' to 'DevelopmentHeader' - Add X-KArtSell-User and X-KArtSell-Role headers in nginx proxy config - Enables API access through nginx reverse proxy (fixes 502 Bad Gateway) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,5 +18,7 @@ server {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-KArtSell-User "nginx-proxy";
|
||||||
|
proxy_set_header X-KArtSell-Role "Admin";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Authentication": {
|
"Authentication": {
|
||||||
"Mode": "FailClosed"
|
"Mode": "DevelopmentHeader"
|
||||||
},
|
},
|
||||||
"Capabilities": {
|
"Capabilities": {
|
||||||
"AutomaticOrder": false,
|
"AutomaticOrder": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user