djang-channels websocket 获取真实ip地址

nginx做反向代理, 要是取到的是内网网址,

daphne命令加上--proxy-headers

CMD ["daphne", "-b", "0.0.0.0", "-p", "1000", "--proxy-headers", "niubiapp.asgi:application"]
For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"