Skip to content

Commit 03510a1

Browse files
committed
Merge branch 'master' of https://github.com/layer5io/docs
2 parents 47c9a53 + 196e93d commit 03510a1

File tree

2 files changed

+92
-15
lines changed

2 files changed

+92
-15
lines changed

content/en/cloud/self-hosted/white-labeling/_index.md

+92-15
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,113 @@ You can change the logo, color scheme, domain name, and other aspects of the use
1212

1313
The Layer5 Cloud dashboard can be customized with your own branding, including your full-sized logo, logo mark, and color scheme.
1414

15-
Visit the Layer5 Cloud dashboard and navigate to the settings page to customize the theme.
16-
1715
{{< cardpane >}}
1816
{{% card header="Dashboard Example" footer="<i>Example: CNCF branding on Dashboard</i>" %}}
1917
This example includes a custom branding with colors and full-sized logo.
2018
![white-label-dashboard-example.png](./images/white-label-dashboard-example.png)
2119
{{% /card %}}
22-
{{% card header="Responsive Dashboard Example" footer="<i>Example: CNCF branding on Dashboard</i>" %}}
23-
This example includes a custom branding with colors and logo mark as would be displayed on a mobile device.
24-
![white-label-dashboard-responsive-example.png
25-
](./images/white-label-dashboard-responsive-example.png
26-
)
27-
{{% /card %}}
28-
{{< /cardpane >}}
29-
3020
{{% card header="Catalog Example" footer="<i>Example: CNCF branding in Catalog</i>" %}}
3121
This example includes a custom branding with colors and full-sized logo.
3222
![white-label-catalog-example.png](./images/white-label-catalog-example.png)
3323
{{% /card %}}
24+
{{< /cardpane >}}
3425

35-
## Customizing Logos
26+
### Organization Preference
3627

3728
Layer5 Cloud supports customizing themes on a per organization basis. This includes the ability to upload your own logo and define your own color scheme. Your logo will be displayed in the top left corner of the dashboard. Both a full-sized logo and a logo mark are supported.
3829

39-
{{< youtube id=hZuhmP7lenk title="Example: Replace the Layer5 logo with your own logo." >}}
30+
As an [Organization Administrator](/cloud/security/roles/organization-roles/), you can add your organization's logo to the global navigation bar, which supports a large, horizontal logo for desktop users and a small, square logo for mobile users. The logo appears at the top of each user's window for all Layer5 Cloud pages within your organization.
31+
32+
{{% card header="Prefrence Example" footer="<i>Example: Selection of theme</i>" %}}
33+
This example shows how to customize through different themes
34+
![white-label-catalog-example.png](./images/pref-selection.gif)
35+
{{% /card %}}
36+
37+
### Custom Logos
38+
39+
You can upload your own logo for your organization. Logo appears in upper left corner of all Layer5 Cloud pages. All teams, workspaces, and users in your organization will use these custom logos.
40+
41+
Your custom logos will optionally be visible to external users if you choose to customize your login screen. Otherwise, your custom logos will only be visible to users within your organization.
42+
43+
If you use a mobile device, the logo mark will be visible.
44+
45+
#### Logo Image Requirements
46+
47+
Logo images must be either in SVG, PNG or GIF format. GIF images can be animated, but are not recommended given their distraction to users. The maximum file size for each image is 500 KB.
48+
<pre>
49+
Horizontal logo: 389 width x 32 height pixels
50+
</pre>
51+
If you upload a smaller or larger image, the image is resized to exactly 389 x 32 pixels. If the aspect ratio does not match, then the image will be distorted. For example, a 132 x 132 pixel image expands to 389 x 32 pixels, causing distortion.
52+
53+
<!-- Insert example logo here -->
54+
<pre>
55+
Square logo (mark): 32 width x 32 height pixels
56+
</pre>
57+
{{% card header="Square Logo Example" footer="<i>Example: CNCF branding on Dashboard</i>" %}}
58+
<p>
59+
This example includes a custom branding with colors and logo mark as would be displayed on a mobile device.</p>
60+
<div style="width: 500px; height: 200px; overflow: hidden;">
61+
<img src="./images/white-label-dashboard-responsive-example.png"
62+
width="100%"
63+
style="margin-top:-.25rem;
64+
margin-left:-.25rem;border-radius:.25rem;
65+
object-fit: fill;" />
66+
</div>
67+
{{% /card %}}
68+
69+
### Uploading Your Logo
70+
71+
On the [Organizations page](https://meshery.layer5.io/identity/organizations), you can upload your custom logo for your organization.
4072

41-
_Example: Layer5 Cloud custom branding on login screen with CNCF branding._
73+
1. Go to Menu and then [**Identity** > **Organization**].
74+
1. To open the Edit window, click the pencil icon next to the organization name.
75+
1. Click Select file to upload and select the logo image on your computer. You'll see a preview your logo.
76+
1. Click Save, if satisfied. You may change your custom logo images at any time.
4277

43-
## Customizing Domain Name
78+
## Custom Domain Name and Login Screen
4479

4580
Layer5 Cloud supports customizing the login screen based on custom domain name. Redirect your users to your own domain name. For example, if your domain name is `mycompany.com`, you can redirect users to `meshery.mycompany.com`.
4681

47-
Example: https://meshery.layer5.io/signup?program=cncf
82+
<!-- {{< youtube id=hZuhmP7lenk title="Example: Replace the Layer5 logo with your own logo." >}} -->
83+
<iframe width="560" height="315" src="https://www.youtube.com/embed/hZuhmP7lenk?si=1o8KLhk3K-HeJCcm" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
84+
85+
<p style="text-align:center; font-style: italic;">Example: Layer5 Cloud custom branding on login screen with CNCF branding. Live example: <a href="https://meshery.layer5.io/signup?program=cncf">https://meshery.layer5.io/signup?program=cncf</a></p>
86+
87+
A subdomain is the part of a URL before the root domain. You can configure your subdomain as www or as a distinct section of your site, like hub.cncf.io.
88+
89+
Subdomains are configured with a CNAME record through your DNS provider.
90+
91+
### Configuring a subdomain
92+
93+
To set up a www or custom subdomain, such as `www.example.com` or `meshery.example.com`, you must add your domain in the repository settings. After that, configure a CNAME record with your DNS provider.
94+
95+
In Layer5 Cloud, navigate to your Provider Organization.
96+
97+
Under your Organization name, click Edit. If you cannot click the "Edit" action, verify that you are a [Provider Administrator](/cloud/security/roles/provider-admin-roles/).
98+
99+
Under "Custom domain", type your custom domain, then click Save. This will create a server configuration will require a reboot in order to take affect.
100+
101+
*Note: If your custom domain is an internationalized domain name, you must enter the Punycode encoded version.*
102+
103+
Navigate to your DNS provider and create a CNAME record that points your subdomain to the default domain for your site. For example, if you want to use the subdomain `hub.cncf.io` for your user site, create a CNAME record that points `hub.cncf.io` to `meshery.layer5.io`. For more information about how to create the correct record, see your DNS provider's documentation.
104+
105+
{{< alert title="Warning" color="warning" >}}
106+
Warning: We strongly recommend that you do not use wildcard DNS records, such as `*.example.com`. These records put you at an immediate risk of domain takeovers, even if you verify the domain. For example, if you verify example.com this prevents someone from using `a.example.com`, but they could still take over `b.a.example.com` (which is covered by the wildcard DNS record).
107+
{{< /alert >}}
108+
109+
#### Verifying your custom domain
110+
111+
Open Terminal.
112+
113+
To confirm that your DNS record configured correctly, use the dig command, replacing `hub.cncf.io` with your subdomain.
114+
115+
<pre>
116+
$ dig WWW.EXAMPLE.COM +nostats +nocomments +nocmd
117+
> ;hub.cncf.io. IN A
118+
> hub.cncf.io. 3592 IN CNAME .
119+
> meshery.layer5.io. 43192 IN CNAME meshery.layer5.io .
120+
> meshery.layer5.io . 22 IN A 192.0.2.1
121+
</pre>
122+
123+
<!-- FUTURE: SUPPORT FOR HTTPS
124+
Optionally, to enforce HTTPS encryption for your site, select Enforce HTTPS. It can take up to 24 hours before this option is available. -->
Loading

0 commit comments

Comments
 (0)