From 9638a2b2845f40f0ea4a6861d739229c1d08ea1c Mon Sep 17 00:00:00 2001 From: YaronL16 <129605837+YaronL16@users.noreply.github.com> Date: Wed, 1 May 2024 22:34:50 +0300 Subject: [PATCH] Added custom logos by volume mounts documentation (#1840) --- .../custom-volume-and-volume-mount-options.md | 51 +++++++++++++++++-- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/docs/user-guide/advanced-configuration/custom-volume-and-volume-mount-options.md b/docs/user-guide/advanced-configuration/custom-volume-and-volume-mount-options.md index 95eb8177..ef0ae75a 100644 --- a/docs/user-guide/advanced-configuration/custom-volume-and-volume-mount-options.md +++ b/docs/user-guide/advanced-configuration/custom-volume-and-volume-mount-options.md @@ -137,14 +137,57 @@ configuration. * [listen](https://nginx.org/en/docs/http/ngx_http_core_module.html#listen) with `nginx_listen_queue_size` (default same as uwsgi listen queue size) -##### Custom Favicon +##### Custom Logos -You can use custom volume mounts to mount in your own favicon to be displayed in your AWX browser tab. +You can use custom volume mounts to mount in your own logos to be displayed instead of the AWX logo. +There are two different logos, one to be displayed on page headers, and one for the login screen. -First, Create the configmap from a local favicon.ico file. +First, create configmaps for the logos from local `logo-login.svg` and `logo-header.svg` files. ```bash -$ oc create configmap favicon-configmap --from-file favicon.ico +$ kubectl create configmap logo-login-configmap --from-file logo-login.svg +$ kubectl create configmap logo-header-configmap --from-file logo-header.svg +``` + +Then specify the extra_volume and web_extra_volume_mounts on your AWX CR spec + +```yaml +--- +spec: + ... + extra_volumes: | + - name: logo-login + configMap: + defaultMode: 420 + items: + - key: logo-login.svg + path: logo-login.svg + name: logo-login-configmap + - name: logo-header + configMap: + defaultMode: 420 + items: + - key: logo-header.svg + path: logo-header.svg + name: logo-header-configmap + web_extra_volume_mounts: | + - name: logo-login + mountPath: /var/lib/awx/public/static/media/logo-login.svg + subPath: logo-login.svg + - name: logo-header + mountPath: /var/lib/awx/public/static/media/logo-header.svg + subPath: logo-header.svg +``` + + +##### Custom Favicon + +You can also use custom volume mounts to mount in your own favicon to be displayed in your AWX browser tab. + +First, create the configmap from a local `favicon.ico` file. + +```bash +$ kubectl create configmap favicon-configmap --from-file favicon.ico ``` Then specify the extra_volume and web_extra_volume_mounts on your AWX CR spec