Follow

added an nginx useragent directive to make my website render correctly on google chrome

if you want to add this to your own nginx setup:

map $http_user_agent $brnotice {
default '</head>';
~*Chrome '<link rel="stylesheet" href="https://maple.pet/notice.css"></head><div class="impnotice">You are using an unsupported browser. Please visit <a href="https://getfirefox.com">this website</a> to upgrade your browser.</div>';
}

server {
[...]
sub_filter '</head>' $brnotice;
sub_filter_once on;
}```
Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!