Support tilde redirects

This commit is contained in:
waffles
2023-01-22 15:46:42 -08:00
parent b19aa738b8
commit 9d5f83c909
+6
View File
@@ -60,6 +60,12 @@ server {
try_files $uri @proxy; try_files $uri @proxy;
} }
# support ~waffles type homedir redirects
location ~ ^/~(.+)?$ {
rewrite ^/(.*) https://home.yttrx.com/$1 permanent;
}
# WITH S3 # WITH S3
location ~ ^/(emoji|packs) { location ~ ^/(emoji|packs) {
add_header Cache-Control "public, max-age=31536000, immutable"; add_header Cache-Control "public, max-age=31536000, immutable";