cyberia / matrix custom favicon #6

Open
opened 2021-09-19 17:43:12 +00:00 by forest · 12 comments
Owner

Someone do a pixel art / handmade anti-aliasing version of bri's cyberia logo to replace our current favicon

Someone do a pixel art / handmade anti-aliasing version of bri's cyberia logo to replace our current favicon
Author
Owner

image

![image](/attachments/cc6aeae3-6b2c-4794-9fc4-18a1a65e4726)
5.3 KiB
Author
Owner
https://picopublish.sequentialread.com/files/cyberia_favicon.kra
Author
Owner
https://picopublish.sequentialread.com/files/cyberia_favicon.ico
Author
Owner
No description provided.
Author
Owner
https://git.cyberia.club/Cyberia/website/commit/16289bb5ffd9365804538a49faaaff46f81bdb46
Author
Owner

For getting this favicon on element-web,

It looks like the options are:

 1. modify the HTML that element serves using a reverse proxy
 2. fork element
For getting this favicon on element-web, It looks like the options are: 1. modify the HTML that element serves using a reverse proxy 2. fork element
Author
Owner

I don't know if it will work... what about the way that it updates teh favicon dynamically when you recieve a message notification
if they embedded the current favicon image into the react code that updates the favicon image, then there's no way, we would just have to fork it

I don't know if it will work... what about the way that it updates teh favicon dynamically when you recieve a message notification if they embedded the current favicon image into the react code that updates the favicon image, then there's no way, we would just have to fork it
Author
Owner
https://github.com/vector-im/element-web/blob/develop/scripts/make-icons.sh
Author
Owner
https://github.com/vector-im/element-web/blob/develop/src/favicon.ts#L62 It downloads the icon from the server
Author
Owner

I bet it can be done with caddy magic too.... define the /vector-icons route like you said, remove the version hash from the end of the filename, and serve static files from a folder which has the output of make-icons.sh

I bet it can be done with caddy magic too.... define the /vector-icons route like you said, remove the version hash from the end of the filename, and serve static files from a folder which has the output of make-icons.sh
Author
Owner
riot.cyberia.club {
  header {
        X-Frame-Options "SAMEORIGIN"
        X-XSS-Protection "1; mode=block"
        X-Content-Type-Options "nosniff"
        X-Robots-Tag "noindex, noarchive, nofollow"
  }
  route /vector-icons/* {
    uri path_regexp "[.][a-f0-9]{7}[.]" "."
    root * /opt/element-custom-favicon
    file_server
  }
  route * {
    root * /opt/element
    file_server
  }
}


got eeem

``` riot.cyberia.club { header { X-Frame-Options "SAMEORIGIN" X-XSS-Protection "1; mode=block" X-Content-Type-Options "nosniff" X-Robots-Tag "noindex, noarchive, nofollow" } route /vector-icons/* { uri path_regexp "[.][a-f0-9]{7}[.]" "." root * /opt/element-custom-favicon file_server } route * { root * /opt/element file_server } } ``` got eeem
Author
Owner
https://git.cyberia.club/Cyberia/ops-handbook/commit/1ba28e3cb3763883bf94ae5ea6b36058039cc5c1
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cyberia/ops-handbook#6
No description provided.