diff --git a/docker/images/files/nginx-entrypoint.sh b/docker/images/files/nginx-entrypoint.sh index 47a8a5544b..1b680f8d16 100644 --- a/docker/images/files/nginx-entrypoint.sh +++ b/docker/images/files/nginx-entrypoint.sh @@ -44,8 +44,14 @@ update_oidc_name() { fi } +update_favicon() { + local favicon="${PENPOT_FAVICON:-favicon.png}" + find /var/www/app -maxdepth 1 -name "*.html" -o -name "*.svg" 2>/dev/null | xargs -r sed -i "s|__PENPOT_FAVICON__|$favicon|g" +} + update_flags /var/www/app/js/config.js update_oidc_name /var/www/app/js/config.js +update_favicon ######################################### ## Nginx Config diff --git a/frontend/resources/images/favicon-develop.png b/frontend/resources/images/favicon-develop.png new file mode 100644 index 0000000000..1a86cd1cac Binary files /dev/null and b/frontend/resources/images/favicon-develop.png differ diff --git a/frontend/resources/images/favicon-local.png b/frontend/resources/images/favicon-local.png new file mode 100644 index 0000000000..3e556a34ae Binary files /dev/null and b/frontend/resources/images/favicon-local.png differ diff --git a/frontend/resources/images/favicon-staging.png b/frontend/resources/images/favicon-staging.png new file mode 100644 index 0000000000..237d929fb8 Binary files /dev/null and b/frontend/resources/images/favicon-staging.png differ diff --git a/frontend/resources/images/favicon-tokens.png b/frontend/resources/images/favicon-tokens.png new file mode 100644 index 0000000000..f329b10509 Binary files /dev/null and b/frontend/resources/images/favicon-tokens.png differ diff --git a/frontend/resources/templates/challenge.mustache b/frontend/resources/templates/challenge.mustache index 16bba9b6af..c6010869a4 100644 --- a/frontend/resources/templates/challenge.mustache +++ b/frontend/resources/templates/challenge.mustache @@ -3,7 +3,7 @@