flask-restplus nginx proxy_pass 했을때 swaggerui가 안보일때


flask-restplus nginx proxy_pass 했을때 swaggerui가 안보일때

보통 flask를 쓸떄, gunicon에 묶은다음 nginx에서 proxy_pass로 넘겨쓰는 케이스가 있습니다 이때 swaggerui를 못찾을때가 있는데, nginx.conf에 해당 내용을 넣어줘야 합니다 location /swaggerui { proxy_pass http://127.0.0.1:8080/swaggerui; 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 $server_name; } https://github.com/noirbizarre/flas..


원문링크 : flask-restplus nginx proxy_pass 했을때 swaggerui가 안보일때