Incorporate nginx as a reverse proxy within the Docker container to enable FastAPI to function within it, while ensuring that it remains inaccessible from outside the Docker instance.
Break-down
Things to take-look during this:
- The
.env file needs changes to store the domain name. The make configure command should only be used during production mode to make it a non-optional parameter.
- Wire-up FastAPI to add the domain name when in
production mode.
- Review the IP-related configurations and other related components in Nginx logs, ensuring that the appropriate information is logged and sensitive data is not inadvertently leaked.
Incorporate nginx as a reverse proxy within the Docker container to enable FastAPI to function within it, while ensuring that it remains inaccessible from outside the Docker instance.
Break-down
Things to take-look during this:
.envfile needs changes to store the domain name. Themake configurecommand should only be used during production mode to make it a non-optional parameter.productionmode.