one-zero-eight / events

Events API of InNoHassle ecosystem
https://api.innohassle.ru/events
MIT License
6 stars 1 forks source link

Host Swagger on our servers #55

Closed ArtemSBulgakov closed 7 months ago

ArtemSBulgakov commented 8 months ago

Describe the feature

We should use Swagger files hosted on our servers, so that we have no dependency on third-party CDNs.

Suggested solution

Host Swagger files using Nginx, replace URL in FastAPI App creation.

Additional context

No response

ArtemSBulgakov commented 8 months ago

The files are now on our servers:

https://api.innohassle.ru/swagger/swagger-ui.css

https://api.innohassle.ru/swagger/swagger-ui-bundle.js

https://api.innohassle.ru/swagger/favicon.png

We should replace them in FastAPI config.