diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..a444dca --- /dev/null +++ b/Caddyfile @@ -0,0 +1,25 @@ +(site) { + root * /var/www/website + file_server + + handle_path /blog/* { + root * /var/www/website/blog/web + file_server + redir /favicon.ico https://meowing.zip/assets/images/favicon.png 301 + } + + handle /brave-detect.css { + header Content-Type text/css + route { + @brave header_regexp brave_ua Sec-Ch-Ua "Brave" + + handle @brave { + respond `#anti-brave { display: var(--display-if-brave, unset) !important; }` 200 + } + + handle { + respond ` /* thanks for not using brave <3 */` 200 + } + } + } +} diff --git a/README.md b/README.md index 19d4326..8b11008 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ hiiiii! *waahhhfff mrrraaaaoooowrr!~* -this is the source code of my personal website, it has infomation about me as well link to all my socials and stuff! +this is the source code of my personal website, it has infomation about me as well link to all my socials and stuff! +mostly hosted here and on [tangled](https://tangled.org/meowing.zip/website) as a backup in case my server fails drastically + +the blog uses the static site generator, [makko](https://makko.starlightnet.work) <3 !! but the main page is in raw html +a Caddyfile that i use in production is also available in this repo