geneontology / go-fastapi

https://api.geneontology.org/
4 stars 3 forks source link

added support for redirecting http to https #54

Closed abessiari closed 11 months ago

abessiari commented 11 months ago

Added option to enable redirect from http to https.

see production/config-stack.yaml.sample To enable set:

REDIRECT_HTTP: 1 redirect_to: FQDN

sierra-moxon commented 11 months ago

Thanks @abessiari - do you think we can also redirect [fastapi_host] to [fastapi_host]/docs ? So we don't have to have a splash page redirecting the user to the swagger docs?

abessiari commented 11 months ago

Thanks @abessiari - do you think we can also redirect [fastapi_host] to [fastapi_host]/docs ? So we don't have to have a splash page redirecting the user to the swagger docs?

I will take a look. Thanks.