stashly

Accounts and the admin area

Accounts are optional and off unless ADMIN_PASSWORD is set. See the README for the short version.

Admin

Set ADMIN_PASSWORD and restart to turn on the admin area at /admin. There is one sign-in for everyone, on the account page (/account): username and password, and the account’s role (admin or user) decides what you can do afterwards. The server’s own admin is the account named by ADMIN_USERNAME (default admin) with the password ADMIN_PASSWORD; Stashly creates it as an admin account at startup. Open /admin while signed out and it asks you to sign in (and brings you back); open it with a plain user account and it says the account is not an admin. Without ADMIN_PASSWORD the admin area, and with it accounts, are off.

Accounts (optional)

Stashly works without accounts, and most people never need one: anyone can create a stash and open any stash they have the name, password or link for, with no login. Accounts are an extra for people who want to follow their stashes and watch them all in one place. They are off unless ADMIN_PASSWORD is set (without it every /api/auth/* and /api/me/* address answers 404 “Accounts are not enabled on this server.”).