# How to set the site logo with 5.1 / Docker

**URL:** <https://community.bluespice.com/t/how-to-set-the-site-logo-with-5-1-docker/313>\
**Category:** Configuration/Setup\
**Created:** [June 20, 2025, 3:05am UTC](https://community.bluespice.com/t/how-to-set-the-site-logo-with-5-1-docker/313 "2025-06-20T03:05:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSDancey](https://dub1.discourse-cdn.com/flex017/user_avatar/community.bluespice.com/rsdancey/32/25_2.png) [@RSDancey](https://community.bluespice.com/u/RSDancey)\
**Post date:** [June 20, 2025, 3:05am UTC](https://community.bluespice.com/t/how-to-set-the-site-logo-with-5-1-docker/313/1 "2025-06-20T03:05:49Z")

</div>

I have added the following line to post-init-settings.php

```auto

$wgLogos = ['1x' => "$wgScriptPath/images/LetterDLogo.png"];

```

when I look at the resulting source I see this:

```auto
<a id="nb-logo" href="[/wiki/Main_Page](https://wiki.mydomain.com/wiki/Main_Page)" title="Main Page" class="mx-4 mw-wiki-logo" style="background-image: url(/w/images/LetterDLogo.png);" role="link" tabindex="0" aria-label="My Site logo - Return to Main Page"></a>
</div>

```

The file is located in /app/bluespice/w/images

It does not load. I’m not sure what to put into the config file to get this logo to brand my site.

---

<div class="post-metadata">

**Author:** ![huaj1ng](https://dub1.discourse-cdn.com/flex017/user_avatar/community.bluespice.com/huaj1ng/32/116_2.png) [@huaj1ng](https://community.bluespice.com/u/huaj1ng)\
**Post date:** [June 20, 2025, 8:38am UTC](https://community.bluespice.com/t/how-to-set-the-site-logo-with-5-1-docker/313/2 "2025-06-20T08:38:28Z")

</div>

Hello Ryan,

the parameter `$wgLogos` is defining a URL of the image, meaning that it wants to visit file `https://wiki.mydomain.com/w/images/LetterDLogo.png` directly, which is actually not quite safe (hence disallowed by the nginx inside web container).

`post-init-settings.php` is a nice place for such a line. For example if I upload my example logo pic `ghunicorn.png` on page `Special:Upload` and check its permanent relative link `/w/nsfr_img_auth.php/7/7d/ghunicorn.png`, I can set the following line

```auto
$wgLogos = ['1x' => "/w/nsfr_img_auth.php/7/7d/ghunicorn.png"];

```

Even easier, extension [FlexiSkin](https://www.mediawiki.org/wiki/Extension:FlexiSkin) is integrated into BlueSpice. You can easily customize your main logo, favicon, colors and many other global styles on page `Special:FlexiSkin`.

* * *

One further hint on the image directory: instead of putting the images inside the `/app/bluespice/w/images`, the persistent data storage directory on the host machine is mapped into the container. You can find your images in `<data-dir-set-in-.env>/wiki/bluespice/images` in the host machine, which is mapped to `/data/bluespice/images` inside the `web` and the `task` containers.

---

<div class="post-metadata">

**Author:** ![RSDancey](https://dub1.discourse-cdn.com/flex017/user_avatar/community.bluespice.com/rsdancey/32/25_2.png) [@RSDancey](https://community.bluespice.com/u/RSDancey)\
**Post date:** [June 20, 2025, 3:27pm UTC](https://community.bluespice.com/t/how-to-set-the-site-logo-with-5-1-docker/313/3 "2025-06-20T15:27:19Z")

</div>

Fantastic. Using the Skins link to access FlexiSkin worked!
