Actually i have solved just now by adding this code to the configuration.yaml
homeassistant:
external_url: https://YOUR_SUBDOMAIN_HERE.com
internal_url: http://YOUR_INTERNAL_HA_IP_HERE:8123
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
ip_ban_enabled: true
login_attempts_threshold: 3