Closed MasterKale closed 2 years ago
The current nginx.conf only works for local development. To support production hosting, the following line:
server_name localhost;
Needs to be updated with the production domain name:
server_name foobar.com localhost;
It might also be worth documenting how to add internal Docker network aliases so that containers can communicate amongst themselves.
PR #21 added a new PROD_HOST_NAME environment variable that can be set to get Django and Nginx to both handle traffic from that host name. I'd say mission accomplished 🚀
PROD_HOST_NAME
The current nginx.conf only works for local development. To support production hosting, the following line:
Needs to be updated with the production domain name:
It might also be worth documenting how to add internal Docker network aliases so that containers can communicate amongst themselves.