Currently, the protocol is automatically chosen by checking whether the request is secure or not, or by getting from the context. I'm using Django just for API and Vue as the frontend, both are running from docker containers with Nginx, so I can't pass the context and since Django is behind Nginx, the connection is "http" inside the container, so the protocol stays "http", it would be great If there is an option like DOMAIN that I can provide in the settings.py.
Currently, the
protocol
is automatically chosen by checking whether the request is secure or not, or by getting from the context. I'm using Django just for API and Vue as the frontend, both are running from docker containers with Nginx, so I can't pass the context and since Django is behind Nginx, the connection is "http" inside the container, so the protocol stays "http", it would be great If there is an option likeDOMAIN
that I can provide in the settings.py.