diff --git a/roles/paas-docker/nginx/files/vhosts/pixelfed.conf b/roles/paas-docker/nginx/files/vhosts/pixelfed.conf --- a/roles/paas-docker/nginx/files/vhosts/pixelfed.conf +++ b/roles/paas-docker/nginx/files/vhosts/pixelfed.conf @@ -41,6 +41,11 @@ return 301 /settings/password; } + # Allow @username to be coherent with Mastodon + location ~ /@(.*) { + return 301 /$1; + } + root /var/wwwroot-502/_default; error_page 502 /502.html; location /502.html {}