masto-fe-standalone/README.md

32 lines
1.2 KiB
Markdown
Raw Normal View History

2023-10-12 18:13:42 +00:00
# Mastodon Glitch Edition (standalone frontend)
2017-07-13 06:55:55 +00:00
2023-10-12 18:26:48 +00:00
This is a somewhat hacky fork of glitch-soc that adds standalone support (meaning your browser can OAuth against an arbitrary instance). It's currently tested to work (for the most part) with Iceshrimp and GoToSocial (and obviously Mastodon).
2023-10-12 18:13:42 +00:00
To try this out, go to [masto-fe.iceshrimp.dev](https://masto-fe.iceshrimp.dev), type in your instance domain name (for split domain setups, use the web domain) & press the button.
2023-10-12 18:26:48 +00:00
To set this up yourself, clone the repo into e.g. `/home/user/masto-fe-standalone` and run `yarn && yarn build:production`.
2017-06-30 16:36:10 +00:00
2023-10-12 18:13:42 +00:00
Then configure nginx for a subdomain like this:
2017-07-13 06:55:55 +00:00
2023-10-12 18:13:42 +00:00
```
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
include sites/example.com/inc/ssl.conf;
server_name masto.example.com;
location / {
root /home/user/masto-fe-standalone/public/;
index index.html;
try_files $uri /index.html;
}
}
```
And open `https://masto.example.com` in your browser, type in your instance domain, press the button & follow the OAuth flow.
Should anything break, open `https://masto.example.com/logout.html` or clear local storage manually.