fix: nginx mastodon WEB_DOMAIN LOCAL_DOMAIN #26

Merged
b12f merged 7 commits from mastodon-fix-web-domain into main 2023-10-28 21:04:45 +00:00
Showing only changes of commit 347d175a8a - Show all commits

View file

@ -16,6 +16,18 @@ in
tryFiles = "$uri @proxy"; tryFiles = "$uri @proxy";
}; };
locations."/auth/sign_up".extraConfig = ''
return 302 /auth/sign_in;
'';
locations."/auth/confirmation/new".extraConfig = ''
return 302 https://auth.pub.solar/realms/pub.solar/login-actions/reset-credentials?client_id=mastodon;
'';
locations."/auth/password/new".extraConfig = ''
return 302 https://auth.pub.solar/realms/pub.solar/login-actions/reset-credentials?client_id=mastodon;
'';
locations."@proxy" = { locations."@proxy" = {
proxyPass = (if cfg.enableUnixSocket then "http://unix:/run/mastodon-web/web.socket" else "http://127.0.0.1:${toString(cfg.webPort)}"); proxyPass = (if cfg.enableUnixSocket then "http://unix:/run/mastodon-web/web.socket" else "http://127.0.0.1:${toString(cfg.webPort)}");
proxyWebsockets = true; proxyWebsockets = true;