Favicon
-
Hello,
Is it possible to change favicon in Fusion Docker?Thanks.
-
@dmitry-karpik If you have a proxy in front of FusionAuth, you should be able to change it just by doing a rewrite of /favicon.ico
Otherwise I'd look at the docker filesystem and find where the favicon.ico is stored and then create a derivative image with that favicon replaced.
-
Thank you. Great idea.
-
Hi, I came across this. I guess for prod we will have some sort of proxy in front of our NextJS but just out of curiosity and also love to see it in my local dockerized FusionAuth I dug for like 15 min and find out we have quite a lot of fav icons in FusionAuth container, so will you help me to figure it out which one is it?
/usr/local/fusionauth/fusionauth-app/web/static/favicon.png
/usr/local/fusionauth/fusionauth-app/web/static/images/
favicon-128.png
favicon-16x16.png
favicon-32x32.png
favicon-96x96.png
Or maybe all of them?
Have any idea @dan @dmitry-karpik?
-
I found out that these are the ones I need to map, although when I mapped only
favicon-128.png
it worked as well, so not sure completely but to some extends I know that these are the ones we need to map:/usr/local/fusionauth/fusionauth-app/web/static/images/favicon-128.png /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-16x16.png /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-32x32.png /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-96x96.png
But IDK exactly what
/usr/local/fusionauth/fusionauth-app/web/static/favicon.png
is being used for. Anyhow, I've decided to ignore it for the time being and later (if something happened) maybe will change my mind .Dockerfile
for those who might be also interested in my FusionAuth versionFROM fusionauth/fusionauth-app:1.45.3 USER root # Install curl RUN apt-get update && \ apt-get install -y curl && \ rm -rf /var/lib/apt/lists/* USER fusionauth COPY ./apps/frontend/public/favicon.ico /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-128.png COPY ./apps/frontend/public/favicon.ico /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-16x16.png COPY ./apps/frontend/public/favicon.ico /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-32x32.png COPY ./apps/frontend/public/favicon.ico /usr/local/fusionauth/fusionauth-app/web/static/images/favicon-96x96.png
For more details look at my repo & give it a if you found it useful.