http:# For extra security set this to only accept connections on localhost if NGINX is on the same machine# Uncommenting this will mean that you can only reach Home Assistant using the proxy, not directly via IP from other clients.# server_host: 127.0.0.1use_x_forwarded_for: true# You must set the trusted proxy IP address so that Home Assistant will properly accept connections# Set this to your NGINX machine IP, or localhost if hosted on the same machine.trusted_proxies: <Your_Nginx_Server_ip>
configuration.yaml
保存后重启一下 docker service sudo docker-compose restart