title: WSO2 Analytics Hostname
body: <p>API Manager 3.0.0 and Analytics 3.0.0</p>
  
  <p>Actually API-M I changed to hostname with any problems. When I change to hostname of Analytics some erros to login:</p>
  
  <p>Only  I change in [API-Analytics]/conf/dashboard/deployment.yaml</p>
  
  <p><strong>deployment.yaml</strong></p>
  
  <pre><code>## Authentication configuration
  auth.configs:
    type: apim
    ssoEnabled: true
    properties:
      adminScope: apim_analytics:admin_carbon.super
      allScopes: apim_analytics:admin apim_analytics:product_manager apim_analytics:api_developer apim_analytics:app_developer apim_analytics:devops_engineer apim_analytics:analytics_viewer apim_analytics:$
      adminServiceBaseUrl: https://myhostname:9443
      adminUsername: admin
      adminPassword: admin
      kmDcrUrl: https://myhostname:9443/client-registration/v0.15/register
      kmTokenUrlForRedirection: https://myhostname:9443/oauth2
      kmTokenUrl: https://hostname:9443/oauth2
      kmUsername: admin
      kmPassword: admin
      portalAppContext: analytics-dashboard
      businessRulesAppContext : business-rules
      cacheTimeout: 900
      baseUrl: https://myhostname:9643
      grantType: authorization_code
      publisherUrl: https://myhostname:9443
      #storeUrl: https://myhostname:9443
  </code></pre>
  
  <p>If I have this error in terminal, after to start dashboard server.</p>
  
  <p><code>&lt;ip adress&gt; != &lt;localhost&gt;</code></p>
  
  <p>But I change myhostname to <strong>localhost</strong> no sends this errors but in login page of Dashboard sends:</p>
  
  <p><a href="https://localhost:9443/oauth2/authorize?response_type=code&amp;client_id=VACHtG8hNxzG2au1EcA3sNmmXooa&amp;scope=apim_analytics%3Aadmin%20apim_analytics%3Aproduct_manager%20apim_analytics%3Aapi_developer%20apim_analytics%3Aapp_developer%20apim_analytics%3Adevops_engineer%20apim_analytics%3Aanalytics_viewer%20apim_analytics%3Aeveryone%20openid%20apim%3Aapi_view%20apim%3Asubscribe&amp;redirect_uri=https%3A%2F%2Flocalhost%3A9643%2Flogin%2Fcallback%2Fanalytics-dashboard%2Flogin" rel="nofollow noreferrer">https://localhost:9443/oauth2/authorize?response_type=code&amp;client_id=VACHtG8hNxzG2au1EcA3sNmmXooa&amp;scope=apim_analytics%3Aadmin%20apim_analytics%3Aproduct_manager%20apim_analytics%3Aapi_developer%20apim_analytics%3Aapp_developer%20apim_analytics%3Adevops_engineer%20apim_analytics%3Aanalytics_viewer%20apim_analytics%3Aeveryone%20openid%20apim%3Aapi_view%20apim%3Asubscribe&amp;redirect_uri=https%3A%2F%2Flocalhost%3A9643%2Flogin%2Fcallback%2Fanalytics-dashboard%2Flogin</a></p>
  
  <p>So, how fix or changed hostanem correctly?</p>
  
  <p><strong>Edit:</strong> </p>
  
  <p>I change only <code>kmTokenUrlForRedirection</code>,<code>kmTokenUrl</code> and <code>baseUrl</code> from deplymento.yaml and dashboard page I have:
  <a href="https://i.stack.imgur.com/TdWVJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TdWVJ.png" alt="enter image description here"></a></p>
  
  <p>I search the error and found this link <a href="https://apim.docs.wso2.com/en/latest/troubleshooting/troubleshooting-invalid-callback-error/" rel="nofollow noreferrer">https://apim.docs.wso2.com/en/latest/troubleshooting/troubleshooting-invalid-callback-error/</a></p>
  
  <p>But I try put somo <strong>regexp</strong> similar to:</p>
  
  <p>regexp</p>
  
  <pre><code>regexp=(https://myhostname:9643/analytics-dashboard/login|https://myhostname:6443/analytics-dashboard/logout)
  </code></pre>
  
  <p>But nothing.
  My new question is:
  Where is a correct form of <strong>regexp</strong> of dashboard?</p>