{"action":"opened","issue":{"url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/567","repository_url":"https://api.github.com/repos/noirbizarre/flask-restplus","labels_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/567/labels{/name}","comments_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/567/comments","events_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/567/events","html_url":"https://github.com/noirbizarre/flask-restplus/issues/567","id":394296073,"node_id":"MDU6SXNzdWUzOTQyOTYwNzM=","number":567,"title":"Error loading swagger UI when flask restplus app deployed to nginx web server","user":{"login":"sanfx","id":2231415,"node_id":"MDQ6VXNlcjIyMzE0MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/2231415?v=4","gravatar_id":"","url":"https://api.github.com/users/sanfx","html_url":"https://github.com/sanfx","followers_url":"https://api.github.com/users/sanfx/followers","following_url":"https://api.github.com/users/sanfx/following{/other_user}","gists_url":"https://api.github.com/users/sanfx/gists{/gist_id}","starred_url":"https://api.github.com/users/sanfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanfx/subscriptions","organizations_url":"https://api.github.com/users/sanfx/orgs","repos_url":"https://api.github.com/users/sanfx/repos","events_url":"https://api.github.com/users/sanfx/events{/privacy}","received_events_url":"https://api.github.com/users/sanfx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-27T05:11:46Z","updated_at":"2018-12-27T05:11:46Z","closed_at":null,"author_association":"NONE","body":"I wrote REST API gateway using flask-restplus plugin, I tested it locally it work and even the swagger documentation loads normally but when I try to run the website on server\r\n\r\nit works opens in the browser but swagger documentation doesnt shows up in browser console I can see the below error: \r\n\r\n\r\n![Image of Yaktocat](https://i.stack.imgur.com/HEvLp.png)\r\n\r\nHere is my site nginx configuration: sites-available $ vi clinic_backend\r\n\r\n```\r\nserver {\r\n        listen 80 default_server;\r\n        listen [::]:80;\r\n\r\n        root /var/www/html;\r\n\r\n        server_name example.com;\r\n\r\n        location /static {\r\n            alias /var/www/html/static/;\r\n        }\r\n\r\n        location / {\r\n            try_files $uri @wsgi;\r\n        }\r\n\r\n        location @wsgi {\r\n            proxy_pass http://unix:/tmp/gunicorn.sock;\r\n            include proxy_params;\r\n        }\r\n\r\n        location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {\r\n            access_log off;\r\n            log_not_found off;\r\n            expires max;\r\n        }\r\n}\r\n```"}}
{"actor":{"display_login":"sanfx"}}