MasterKale / Docker-Django

A complete Django setup, running in Docker
71 stars 27 forks source link

Document how to update nginx.conf for production domain name support #11

Closed MasterKale closed 2 years ago

MasterKale commented 3 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.

MasterKale commented 2 years ago

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 🚀