summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-05-11 12:25:53 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-11 12:25:53 +0200
commit00111666a015fb13f7623dc42d35d9f11d29cec0 (patch)
tree3eee1985e15f588a8b72c81959d444f0cb45f0f4
parent[Documentation] tidy docker-compose docs, add note about uid/gid (#551) (diff)
downloadgotosocial-00111666a015fb13f7623dc42d35d9f11d29cec0.tar.xz
[documentation] Admin Panel installation + usage (#552)
* admin panel documentation * wrap link so it's clickable * format img so it works with mkdocs serve Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
-rw-r--r--docs/admin/admin_panel.md25
-rw-r--r--docs/assets/admin-panel.pngbin0 -> 121070 bytes
2 files changed, 23 insertions, 2 deletions
diff --git a/docs/admin/admin_panel.md b/docs/admin/admin_panel.md
index 18e14027a..da801f0d9 100644
--- a/docs/admin/admin_panel.md
+++ b/docs/admin/admin_panel.md
@@ -1,5 +1,26 @@
# Admin Control Panel
-TODO!
+[gotosocial-admin](https://github.com/superseriousbusiness/gotosocial-admin) is a simple webclient that uses the [admin api routes](https://docs.gotosocial.org/en/latest/api/swagger/#operations-tag-admin) to manage your instance. It uses the same OAUTH mechanism as normal clients (with scope: admin), and as such can be hosted anywhere, separately from your instance, or run locally. A public installation is available here: [https://gts.superseriousbusiness.org/admin](https://gts.superseriousbusiness.org/admin).
-For now see [here](https://github.com/superseriousbusiness/gotosocial-admin).
+## Using the panel
+To use the Admin API your account has to be promoted as such:
+```
+./gotosocial --config-path ./config.yaml admin account promote --username YOUR_USERNAME
+```
+After this, you can enter your instance domain in the login field (auto-filled if you run GoToSocial on the same domain), and login like you would with
+any other client.
+
+<p align="middle">
+ <img src="../../assets/admin-panel.png">Screenshot of the GoToSocial admin panel, showing the fields to change an instance's settings</img>
+</p>
+
+You can change the instance's settings like the title and descriptions, and add/remove/change domain blocks including a bulk import/export.
+
+## Installing the panel
+Build requirements: some version of [Node.js](https://nodejs.org) and yarn.
+```
+git clone https://github.com/superseriousbusiness/gotosocial-admin.git && cd gotosocial-admin
+yarn install
+node index.js
+```
+This will compile a static bundle in `public/`, which can be copied to any webhost, or put into your GoToSocial installation in the `web/admin` directory. \ No newline at end of file
diff --git a/docs/assets/admin-panel.png b/docs/assets/admin-panel.png
new file mode 100644
index 000000000..feaca51e6
--- /dev/null
+++ b/docs/assets/admin-panel.png
Binary files differ