25 lines
987 B
JavaScript
25 lines
987 B
JavaScript
module.exports = ({ appName, environment, rootURL, config }) => `
|
|
<!-- CONSUL_VERSION: ${config.CONSUL_VERSION} -->
|
|
<meta name="consul-ui/ui_config" content="${
|
|
environment === 'production'
|
|
? `{{ jsonEncodeAndEscape .UIConfig }}`
|
|
: escape(
|
|
JSON.stringify({
|
|
metrics_provider: 'prometheus',
|
|
metrics_proxy_enabled: true,
|
|
dashboard_url_templates: {
|
|
service: 'https://example.com?{{Service.Name}}&{{Datacenter}}',
|
|
},
|
|
})
|
|
)
|
|
}" />
|
|
|
|
<link rel="icon" type="image/png" href="${rootURL}assets/favicon-32x32.png" sizes="32x32">
|
|
<link rel="icon" type="image/png" href="${rootURL}assets/favicon-16x16.png" sizes="16x16">
|
|
<link integrity="" rel="stylesheet" href="${rootURL}assets/vendor.css">
|
|
<link integrity="" rel="stylesheet" href="${rootURL}assets/${appName}.css">
|
|
${
|
|
environment === 'test' ? `<link rel="stylesheet" href="${rootURL}assets/test-support.css">` : ``
|
|
}
|
|
`;
|