-
Notifications
You must be signed in to change notification settings - Fork 65
Redirects to IP address when domain is used in address bar #226
Comments
After Ian set the FQDN in the vApp settings the config was updated but after the SSO login, he was redirected back to the IP. Based on this https://github.com/vmware/vic-product/pull/1066/files
Any ideas on if we need to set something else @sergiosagu @morris-jason ? |
@andrewtchin - I think that the problem comes from the value that the parameter That parameter should be the FQDN specified during the OVA installation, if any. You can leave this issue in this repo if you want, but it's more an OVA install/config issue. |
@sergiosagu the publicUrl is being set as expected - (this is a naming problem. We call it OVA_VM_IP but it actually is a hostname if available, set by configure_admiral.) /usr/bin/docker run -p 8282:8282
--name vic-admiral
-v /storage/data/admiral:/var/admiral
-v /storage/data/admiral/configs:/configs
-v /storage/log/admiral:/admiral/log
-v /etc/vmware/admiral/logging-vic.properties:/config/logging.properties
-e ADMIRAL_PORT=-1
-e JAVA_OPTS=-Ddcp.net.ssl.trustStore=/configs/trustedcertificates.jks -Ddcp.net.ssl.trustStorePassword=changeit -Dencryption.key.file=/var/admiral/8282/encryption.key -Dinit.encryption.key.file=true -e CONFIG_FILE_PATH=/configs/config.properties
-e XENON_OPTS=--publicUri=https://vch.theknown.net:8282/ --bindAddress=0.0.0.0 --port=-1 --authConfig=/configs/psc-config.properties --securePort=8282 --keyFile=/configs/server.key --certificateFile=/configs/server.crt --startMockHostAdapterInstance=false
--log-driver=json-file --log-opt max-size=1g --log-opt max-file=10 vmware/admiral:vic_v1.3.0-rc2 Disregard obvious issues of spacing and quoting - I edited the command to make it look better for github output. |
In fact, the problem seems to be: cat /storage/data/admiral/configs/psc-config.properties
#Fri Dec 01 22:34:09 UTC 2017
admiral-url=https\://10.192.59.142\:8282
.....<redacted> |
Issue moved to vmware/vic-product #1215 via ZenHub |
I've identified this as a problem with the fileserver so I'm moving it to vic-product. |
This can be closed as the issue is now in vic-product. Thanks Sergio |
Closing this issue since it was moved to vmware/vic-product#1215 |
I have installed Admiral through the VIC 1.3 RC2 OVA and provided custom certificates that are assigned to
vch.theknown.net
, a domain that I control. This domain resolves to the private IP on which I have installed the OVA. When I click on the admin portal, I'm redirected instead tohttps://private_ip/
and, thus, receive a certificate warning.There should be a way for me to change the base url of links referencing Admiral to use the domain name being accessed if that behavior cannot be detected, and in any case, I should be able to access Admiral at vch.theknown.net:8282 if I specify that in my browser without being redirected to IP_ADDRESS:8282
The text was updated successfully, but these errors were encountered: