nginx: redirect mastoon handles

single-dockerfile
Trammell Hudson 2 years ago
parent ffc1e86c86
commit 4084e6601f
  1. 5
      nginx/www.conf

@ -37,6 +37,11 @@ server {
return 302 https://${KEYCLOAK_HOSTNAME}.${DOMAIN_NAME}$request_uri; return 302 https://${KEYCLOAK_HOSTNAME}.${DOMAIN_NAME}$request_uri;
} }
# redirect mastodon handles (which start with @) directly to mastodon site
location ~ ^/@ {
return 302 https://${MASTODON_HOSTNAME}.${DOMAIN_NAME}$request_uri;
}
# tilde club home directories # tilde club home directories
location ~ ^/~(.+?)(/.*)?$ { location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/public_html$2; alias /home/$1/public_html$2;

Loading…
Cancel
Save