Skip to content

swagger not running behind nginx. static context not loading  #99

Description

@kanhaiyaagarwal

all get of swagger-static
"GET /swagger-static/lib/marked.js HTTP/1.0"
giving
404

my niginx setting:

server {
listen 8888;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

 location /recko/ {
  proxy_pass http://localhost:8001/;
  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-Host   $host;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-Proto  $scheme;

}
}

looks like issue of relative url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions