khrt / Raisin

Raisin - a REST API micro framework for Perl 🐫 🐪
61 stars 29 forks source link

Improvement: allow swagger to reside behind a reverse proxy #101

Closed hidden-primary-net closed 4 years ago

hidden-primary-net commented 4 years ago

When calling /swagger for the first time the basePath and host attributes are set forever.

When "my" swagger is behind a reverse proxy mapping the plackup URL http://127.0.0.1:5000/ to e.g. https://1.2.3.4/dummy the host will be 127.0.0.1:5000 instead of 1.2.3.4 and basePath becomes / instead of /dummy.