ngoduykhanh / wireguard-ui

Wireguard web interface
MIT License
4.03k stars 498 forks source link

Why can't wg-ui read variables? #593

Open nhb2318 opened 3 months ago

nhb2318 commented 3 months ago

I created an empty Docker and placed the wg ui and init. sh files in the '/app' directory. After starting the Docker, I found that it can run and open the login interface, but cannot read environment variables. I don't know why? When I created the Docker, I set variables such as environment: SMTP_HOSTNAME, SMTP-PORT, SMTP-AUTHYTYPE, SMTP-USERNAME, SMTP-PASSWORD, and so on. Moreover, when I ssh into the container and run env, I can still print the variables I set. Why can't HTML load? I hope you can help me. Thank you!