I have a fairly clean install, just ran a basic
docker run -d --restart=always -p 8080:8080 rancher/server
I can get to it directly, but not through an nginx proxy. The first set of requests is clean, but suddenly it tries to do an
The (sanitized) nginx logs are below:
"GET /static HTTP/1.1" 200 382 "GET /v1/token HTTP/1.1" 200 229 "http://x.x.x.x:8080/static/" "GET /v1/schemas?limit=1000 HTTP/1.1" 200 18654 "http://x.x.x.x:8080/static/" "OPTIONS /v1/projects?all=true&limit=1000 HTTP/1.1" 405 172 "http://x.x.x.x:8080/static/"
So it loads
/static, which loads
/v1/schemas and then tries to call
Looking at it client-side, Firebug gives the same thing up to a point.
GET static GET vendor.css GET ss-gizmo.css GET css?family=... GET ui.css GET vendor.js GET ui.js GET token GET schemas?limit=1000
and here is where they diverge. Next line direct is:
While via the proxy:
As if it is trying to do CORS… which I think it is. The successful case (direct) uses the same IP and port for the
GET projects, but the proxy tries the same IP without the port.