diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-08-10 02:08:21 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-08-10 02:25:41 -0400 |
| commit | d577da336f746f8a7568f82a35a84a44ce886589 (patch) | |
| tree | 5ffc64c95eb758c82eb6733ae7cce83247ae7b5c | |
| parent | 3d336267ba7e3ec38b2a82986996bb76225c0a5a (diff) | |
add SVG Tiny Portable/Secure icon for BIMI
https://bimigroup.org/
https://datatracker.ietf.org/doc/html/draft-svg-tiny-ps-abrotman-00
| -rw-r--r-- | nginx/nginx.conf | 7 | ||||
| -rw-r--r-- | static/bimi.svg | 1 | ||||
| -rwxr-xr-x | validate-static | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e8880f0e..e6b28ce5 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -244,6 +244,13 @@ http { add_header Cache-Control "public, max-age=604800"; } + location = /bimi.svg { + include snippets/security-headers.conf; + # allow https://bimigroup.org/bimi-generator/ to hotlink the image + add_header Cross-Origin-Resource-Policy "cross-origin" always; + add_header Cache-Control "public, max-age=604800"; + } + location = /mask-icon.svg { include snippets/security-headers.conf; add_header Cross-Origin-Resource-Policy "same-origin" always; diff --git a/static/bimi.svg b/static/bimi.svg new file mode 100644 index 00000000..69375401 --- /dev/null +++ b/static/bimi.svg @@ -0,0 +1 @@ +<svg baseProfile="tiny-ps" fill-rule="evenodd" height="253.82401" version="1.2" viewBox="0 0 2644.0798 2644" width="253.82401" xmlns="http://www.w3.org/2000/svg"><title>GrapheneOS</title><path d="m771.67168 798 381.00032-217c-7.0001-21-12.0001-43-12.0001-67 0-92 67.0001-168 155.0001-184v-330h64v330c88 16 155 92 155 184 0 24-5 46-13 67l382 217c14-16 31-30 50-42 80-46 180-26 237 42l286-165 32 56-286 165c31 84-2 180-82 226-18 10-36 17-55 21v442c19 4 37 11 55 21 80 46 113 142 82 226l286 165-32 56-286-165c-57 68-157 88-237 42-19-12-36-26-50-42-127 72-254 145-382 217 8 21 13 43 13 67 0 92-67 168-155 184v330h-64v-330c-88-16-155.0001-92-155.0001-184 0-24 5-46 12.0001-67l-381.00032-217c-14 16-31 30-50 42-80 46-180 26-237-42l-285.99999 165-32-56 285.99999-165c-31-84 2-180 82-226 18-10 36-17 55-21v-442c-19-4-37-11-55-21-80-46-113-142-82-226l-285.99999-165 32-56 285.99999 165c57-68 157-88 237-42 19 12 36 26 50 42zm1080.00032 992c-18-50-15-108 14-157 30-52 81-84 136-92v-438c-55-8-106-40-136-92-29-49-32-107-14-157l-382-218c-35 40-85 65-142 65s-107-25-142-65l-382.00032 218c18 50 15 108-14 157-30 52-81 84-136 92v438c55 8 106 40 136 92 29 49 32 107 14 157l382.00032 218c35-40 85-65 142-65s107 25 142 65z" fill="#1a1a1a" fill-rule="nonzero" transform="translate(0 .000102)"/></svg>
\ No newline at end of file diff --git a/validate-static b/validate-static index e1b08025..a0d09d38 100755 --- a/validate-static +++ b/validate-static @@ -16,4 +16,4 @@ done xmllint --noout static_tmp/**/*.@(html|svg|xml) eslint static_tmp/**/!(fastboot.min.m|z-worker-pako.|pako_inflate.min.|)js stylelint static_tmp/**/*.css -validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg) +validatornu --Werror --also-check-css --also-check-svg static_tmp/**/!(bimi).@(css|html|svg) |
