Skip to content

Commit

Permalink
update server_name help text
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Mar 18, 2020
1 parent 5e6afb7 commit 72649df
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ import {
htmlIdGenerator,
} from '@elastic/eui';

import { skippingDisconnectedClustersUrl, transportPortUrl } from '../../../services/documentation';
import {
skippingDisconnectedClustersUrl,
transportPortUrl,
proxySettingsUrl,
} from '../../../services/documentation';

import { RequestFlyout } from './request_flyout';

Expand Down Expand Up @@ -416,7 +420,17 @@ export class RemoteClusterForm extends Component {
helpText={
<FormattedMessage
id="xpack.remoteClusters.remoteClusterForm.fieldServerNameHelpText"
defaultMessage="A string which will be sent in the server_name field of the TLS Server Name Indication extension if TLS is enabled."
defaultMessage="A string sent in the server_name field of the TLS Server Name Indication extension if TLS is enabled. {learnMoreLink}"
values={{
learnMoreLink: (
<EuiLink href={proxySettingsUrl} target="_blank">
<FormattedMessage
id="xpack.remoteClusters.remoteClusterForm.fieldServerNameHelpText.learnMoreLinkLabel"
defaultMessage="Learn more."
/>
</EuiLink>
),
}}
/>
}
fullWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export let skippingDisconnectedClustersUrl: string;
export let remoteClustersUrl: string;
export let transportPortUrl: string;
export let proxyModeUrl: string;
export let proxySettingsUrl: string;

export function init(docLinks: DocLinksStart): void {
const { DOC_LINK_VERSION, ELASTIC_WEBSITE_URL } = docLinks;
Expand All @@ -19,4 +20,5 @@ export function init(docLinks: DocLinksStart): void {
remoteClustersUrl = `${esDocBasePath}/modules-remote-clusters.html`;
transportPortUrl = `${esDocBasePath}/modules-transport.html`;
proxyModeUrl = `${esDocBasePath}/modules-remote-clusters.html#proxy-mode`;
proxySettingsUrl = `${esDocBasePath}/modules-remote-clusters.html#remote-cluster-proxy-settings`;
}

0 comments on commit 72649df

Please sign in to comment.