ZRColaWS: Stop setting API server in Swagger UI
Host where the webservice is listening is not the same as host where clients connect to. Unless localhost, but that limits use of Swagger UI for internal use only. And, not to forget: reverse proxy that will typically run in front of ZRCola web service and will publish it with who knows what public URL. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
004958f464
commit
f6d0323485
@ -59,9 +59,7 @@ public:
|
|||||||
.setContactUrl("https://zrcola.zrc-sazu.si/en/")
|
.setContactUrl("https://zrcola.zrc-sazu.si/en/")
|
||||||
|
|
||||||
.setLicenseName("GNU General Public License, Version 3")
|
.setLicenseName("GNU General Public License, Version 3")
|
||||||
.setLicenseUrl("https://www.gnu.org/licenses/gpl-3.0.en.html")
|
.setLicenseUrl("https://www.gnu.org/licenses/gpl-3.0.en.html");
|
||||||
|
|
||||||
.addServer(oatpp::String("http://") + m_address.host + ":" + std::to_string(m_address.port), "API Server");
|
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user