Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Custom favicon #51

Closed
1 task done
strboul opened this issue Mar 28, 2024 · 5 comments
Closed
1 task done

[FEAT] Custom favicon #51

strboul opened this issue Mar 28, 2024 · 5 comments
Labels
enhancement New feature or request no-issue-activity

Comments

@strboul
Copy link

strboul commented Mar 28, 2024

Is this a new feature request?

  • I have searched the existing issues

Wanted change

There's a default favicon on the application. It'd be nice to allow users to set a custom favicon e.g. via environment variables.

Besides, other services using the base image VNC (such as Firefox) can also benefit from this. For instance, showing Firefox logo in the browser's tab instead of the default favicon would be more pleasant.
So for the other services, I'd propose to add a default favicon of the application as well as the option to change the default favicon.

Reason for change

It's nice to see tabs distinguished by different icons rather than all of them have the same icon and it's also more customization possibilities for the end user.

Proposed code change

The favicon is directly accessible at e.g. localhost:3000/favicon.ico. It could be possible to tell nginx to use a different favicon.

What can be added to the file /etc/nginx/http.d/default.conf:

location /favicon.ico {
    alias /path/to/favicon.ico; # that path comes from the environment variables
}
@strboul strboul added the enhancement New feature or request label Mar 28, 2024
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@thelamer
Copy link
Member

-v /path/to/local/favicon.ico:/kclient/public/favicon.ico would work.

@strboul
Copy link
Author

strboul commented May 8, 2024

-v /path/to/local/favicon.ico:/kclient/public/favicon.ico would work.

This works well. Maybe we should just document it in the README under e.g. Optional run configurations, e.g. Firefox.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request no-issue-activity
Projects
Development

No branches or pull requests

3 participants