CiscoDevNet / yangsuite

Cisco YANG Suite provides a set of tools and plugins to learn, test, and adopt YANG programmable interfaces such as NETCONF, RESTCONF, gNMI and more.
Other
237 stars 70 forks source link

Incorrect NGINX redirect when accessing remotely, even after entering IP address during start_yang_suite.sh #106

Open matgayno opened 7 months ago

matgayno commented 7 months ago

The nginx site.conf file contains the following server block: server { listen 80; server_name localhost; return 302 https://$server_name:8443; } This is incorrect as nginx will send a 302 redirect instructing the client to go to localhost, when the Yang suite server is remote. The script needs to update the nginx configuration to include the FQDN/IP address inputted during the setup script execution.