13 lines
1.4 KiB
Markdown
13 lines
1.4 KiB
Markdown
this is a fork of status.cafe that is for embeddable writing updates. dockerization credit to melo, girlonthemoon.xyz, who wrote the below documentatipn:
|
|
|
|
this is just a clone of [~m15o/status](https://git.sr.ht/~m15o/status/) that adds a dockerfile and compose file for containerized deployment.
|
|
|
|
## customization and administration
|
|
|
|
the following environment variables in ``.env.example`` configure administration and customization of the site. please copy the example file to ``.env`` for it to work with the compose file.
|
|
|
|
- `DATABASE_URL` - the value for this will fill in with variables that configure postgres in the same file, which you should change for security.
|
|
- `ASSETS_DIR` - the value provided should not be changed unless you wish to move the assets folder in the source code. on the host, the asset directory can contain `style2.css`, which is mounted over the `style.css` file in the container via the compose file, to allow for customization of the site's styling.
|
|
- `MANUAL_REGISTRATION` - by default this is disabled, which means all users are automatically approved upon registration and are able to post. after registering a user you will use as admin, i recommend setting this to `0` to enable manual approval of users via the `/admin` page.
|
|
|
|
in `web/handler/admin_show.go`, you must edit all instances of `m15o` to reflect your admin account's username, or else you will not be able to access the admin page and approve/deny users.
|