allow customizable data directory #62

Open
bbedward wants to merge 4 commits from bbedward/out-of-your-element:main into main
First-time contributor

We bridge niri matrix room with discord using mautrix, and recently tried ooye and generally like it. But we maintain the homeserver and bridge in kubernetes which means we require containerization.

Two things changed:

  1. Adds support for a new environment variable, OOYE_DATA_DIR - which can be used to override cwd() as the data path for registration.yaml and the sqlite database. This is often desirable for kubernetes and container environments in general since containers are usually stateless, and persistent data gets mounted on a separate volume. Or in the case of registration, mounted as a secret/configmap to a separate volume.
  2. Allow overrding read_only_room_events_default_power via registration. It's true on the niri discord server and other discord servers that rooms remain read-only until the userr has completed some captcha or other acknowledgement of rules, so it's desirable for us to set it to 0 - since @everyone is read-only, and everyone gets another role which makes them not-read only but also not worthy of an elevated power level.
We bridge [niri](https://github.com/YaLTeR/niri) matrix room with discord using mautrix, and recently tried ooye and generally like it. But we maintain the homeserver and bridge in kubernetes which means we require containerization. Two things changed: 1. Adds support for a new environment variable, `OOYE_DATA_DIR` - which can be used to override `cwd()` as the data path for registration.yaml and the sqlite database. This is often desirable for kubernetes and container environments in general since containers are usually stateless, and persistent data gets mounted on a separate volume. Or in the case of registration, mounted as a secret/configmap to a separate volume. 2. Allow overrding `read_only_room_events_default_power` via registration. It's true on the niri discord server and other discord servers that rooms remain read-only until the userr has completed some captcha or other acknowledgement of rules, so it's desirable for us to set it to 0 - since @everyone is read-only, and everyone gets another role which makes them not-read only but also not worthy of an elevated power level.
bbedward added 4 commits 2025-09-09 03:07:18 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:bbedward-main
git checkout bbedward-main

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout main
git merge --no-ff bbedward-main
git checkout bbedward-main
git rebase main
git checkout main
git merge --ff-only bbedward-main
git checkout bbedward-main
git rebase main
git checkout main
git merge --no-ff bbedward-main
git checkout main
git merge --squash bbedward-main
git checkout main
git merge --ff-only bbedward-main
git checkout main
git merge bbedward-main
git push origin main
Sign in to join this conversation.
No reviewers
No labels
blocking
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cadence/out-of-your-element#62
No description provided.