fix(docs): README-CRLF erhalten, env.example/compose/Fehlersuche nach Review (#30)
CI / App (npm ci + Build, ESLint, Stylelint, Jest) (pull_request) Successful in 2m32s
CI / Storage (mongo) (pull_request) Successful in 1m42s
CI / Storage (postgres) (pull_request) Successful in 1m47s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dev-bot BotandClaude Sonnet 5.5 committed 2026-11-26 11:12:14 +00:00
1 parent f96dec267b
commit cafa5cddcd
4 files changed
+183 -180

No files matched your search

+178 -178
View File
@@ -1,178 +1,178 @@
# The Homebrewery # The Homebrewery
[![Homebrewery](https://circleci.com/gh/naturalcrit/homebrewery/tree/master.svg?style=svg)](https://app.circleci.com/pipelines/github/naturalcrit/homebrewery?branch=master) [![Homebrewery](https://circleci.com/gh/naturalcrit/homebrewery/tree/master.svg?style=svg)](https://app.circleci.com/pipelines/github/naturalcrit/homebrewery?branch=master)
The Homebrewery is a tool for making authentic looking [D&D content][dnd-content-url] The Homebrewery is a tool for making authentic looking [D&D content][dnd-content-url]
using [Markdown][markdown-url]. It is distributed under the terms of the [MIT License](./license). using [Markdown][markdown-url]. It is distributed under the terms of the [MIT License](./license).
[dnd-content-url]: https://dnd.wizards.com/products/tabletop-games/rpg-products/rpg_playershandbook [dnd-content-url]: https://dnd.wizards.com/products/tabletop-games/rpg-products/rpg_playershandbook
[markdown-url]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet [markdown-url]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
## Quick Start ## Quick Start
The easiest way to get started using The Homebrewery is to use it The easiest way to get started using The Homebrewery is to use it
[on our website][homebrewery-url]. The code is open source, so feel free to [on our website][homebrewery-url]. The code is open source, so feel free to
clone it and tinker with it. If you want to make changes to the code, you can run clone it and tinker with it. If you want to make changes to the code, you can run
your own local version for testing by following the installation instructions your own local version for testing by following the installation instructions
below. below.
[homebrewery-url]: https://homebrewery.naturalcrit.com [homebrewery-url]: https://homebrewery.naturalcrit.com
### Installation ### Installation
First, install three programs that The Homebrewery requires to run and retrieve First, install three programs that The Homebrewery requires to run and retrieve
updates: updates:
1. install [node](https://nodejs.org/en/), version v16 or higher. 1. install [node](https://nodejs.org/en/), version v16 or higher.
1. install [mongodb](https://www.mongodb.com/try/download/community) (Community version) 1. install [mongodb](https://www.mongodb.com/try/download/community) (Community version)
For the easiest installation, follow these steps: For the easiest installation, follow these steps:
1. In the installer, uncheck the option to run as a service. 1. In the installer, uncheck the option to run as a service.
1. You can install MongoDB Compass if you want a GUI to view your database documents. 1. You can install MongoDB Compass if you want a GUI to view your database documents.
1. If you install any version over 6.0, you will have to install [MongoDB Shell](https://www.mongodb.com/try/download/shell). 1. If you install any version over 6.0, you will have to install [MongoDB Shell](https://www.mongodb.com/try/download/shell).
1. Go to the C:\ drive and create a folder called "data". 1. Go to the C:\ drive and create a folder called "data".
1. Inside the "data" folder, create a new folder called "db". 1. Inside the "data" folder, create a new folder called "db".
1. Open a command prompt or other terminal and navigate to your MongoDB install folder (C:\Program Files\Mongo\Server\6.0\bin). 1. Open a command prompt or other terminal and navigate to your MongoDB install folder (C:\Program Files\Mongo\Server\6.0\bin).
1. In the command prompt, run "mongod", which will start up your local database server. 1. In the command prompt, run "mongod", which will start up your local database server.
1. While MongoD is running, open a second command prompt and navigate to the MongoDB install folder. 1. While MongoD is running, open a second command prompt and navigate to the MongoDB install folder.
1. Search in Windows for "Advanced system settings" and open it. 1. Search in Windows for "Advanced system settings" and open it.
1. Click "Environment variables", find the "path" variable, and double-click to open it. 1. Click "Environment variables", find the "path" variable, and double-click to open it.
1. Click "New" and paste in the path to the MongoDB "bin" folder. 1. Click "New" and paste in the path to the MongoDB "bin" folder.
1. Click "OK" three times to close all the windows. 1. Click "OK" three times to close all the windows.
1. In the second command prompt, run "mongo", which allows you to edit the database. 1. In the second command prompt, run "mongo", which allows you to edit the database.
1. Type `use homebrewery` to create The Homebrewery database. You should see `switched to db homebrewery`. 1. Type `use homebrewery` to create The Homebrewery database. You should see `switched to db homebrewery`.
1. Type `db.brews.insertOne({"title":"test"})` to create a blank document. You should see `{ 1. Type `db.brews.insertOne({"title":"test"})` to create a blank document. You should see `{
acknowledged: true, acknowledged: true,
insertedId: ObjectId("63c2fce9e5ac5a94fe2410cf") insertedId: ObjectId("63c2fce9e5ac5a94fe2410cf")
}` }`
1. install [git](https://git-scm.com/downloads) (select the option that allows Git to run from the command prompt). 1. install [git](https://git-scm.com/downloads) (select the option that allows Git to run from the command prompt).
Checkout the repo ([documentation][github-clone-repo-docs-url]): Checkout the repo ([documentation][github-clone-repo-docs-url]):
``` ```
git clone https://github.com/naturalcrit/homebrewery.git git clone https://github.com/naturalcrit/homebrewery.git
``` ```
[github-clone-repo-docs-url]: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/cloning-a-repository [github-clone-repo-docs-url]: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/cloning-a-repository
Second, you will need to add the environment variable `NODE_ENV=local` to allow Second, you will need to add the environment variable `NODE_ENV=local` to allow
the project to run locally. the project to run locally.
You can set this **temporarily** (until you close the terminal) in your shell of choice with admin privileges: You can set this **temporarily** (until you close the terminal) in your shell of choice with admin privileges:
* Windows Powershell: `$env:NODE_ENV="local"` * Windows Powershell: `$env:NODE_ENV="local"`
* Windows CMD: `set NODE_ENV=local` * Windows CMD: `set NODE_ENV=local`
* Linux / macOS: `export NODE_ENV=local` * Linux / macOS: `export NODE_ENV=local`
If you want to add this variable **permanently** the steps are as follows: If you want to add this variable **permanently** the steps are as follows:
1. Search in Windows for "Advanced system settings" and open it. 1. Search in Windows for "Advanced system settings" and open it.
1. Click "Environment variables". 1. Click "Environment variables".
1. In System Variables, click "New" 1. In System Variables, click "New"
1. Click "New" and write `NODE_ENV` as a name and `local` as the value. 1. Click "New" and write `NODE_ENV` as a name and `local` as the value.
1. Click "OK" three times to close all the windows. 1. Click "OK" three times to close all the windows.
This can be undone at any time if needed. This can be undone at any time if needed.
Third, you will need to install the Node dependencies, compile the app, and run Third, you will need to install the Node dependencies, compile the app, and run
it using the two commands: it using the two commands:
1. `npm install` 1. `npm install`
1. `npm start` 1. `npm start`
When the Homebrewery server is started for the first time, it will modify the database to create the indexes required for better Homebrewery performance. This may take a few moments to complete for each index, dependent on how much content is in your local database - a brand new, empty database should be done in seconds. When the Homebrewery server is started for the first time, it will modify the database to create the indexes required for better Homebrewery performance. This may take a few moments to complete for each index, dependent on how much content is in your local database - a brand new, empty database should be done in seconds.
On completion, you should be able to go to [http://localhost:8000](http://localhost:8000) in your browser and use The Homebrewery offline. On completion, you should be able to go to [http://localhost:8000](http://localhost:8000) in your browser and use The Homebrewery offline.
If you had any issue at all, here are some links that may be useful: If you had any issue at all, here are some links that may be useful:
- [Course](https://learn.mongodb.com/courses/m103-basic-cluster-administration) on cluster administration, useful for beginners - [Course](https://learn.mongodb.com/courses/m103-basic-cluster-administration) on cluster administration, useful for beginners
- [Mongo community forums](https://www.mongodb.com/community/forums/) - [Mongo community forums](https://www.mongodb.com/community/forums/)
- Useful Stack Overflow links for your most probable errors: [1](https://stackoverflow.com/questions/44962540/mongod-and-mongo-commands-not-working-on-windows-10), [2](https://stackoverflow.com/questions/15053893/mongo-command-not-recognized-when-trying-to-connect-to-a-mongodb-server/41507803#41507803), [3](https://stackoverflow.com/questions/51224959/mongo-is-not-recognized-as-an-internal-or-external-command-operable-program-o) - Useful Stack Overflow links for your most probable errors: [1](https://stackoverflow.com/questions/44962540/mongod-and-mongo-commands-not-working-on-windows-10), [2](https://stackoverflow.com/questions/15053893/mongo-command-not-recognized-when-trying-to-connect-to-a-mongodb-server/41507803#41507803), [3](https://stackoverflow.com/questions/51224959/mongo-is-not-recognized-as-an-internal-or-external-command-operable-program-o)
If you still have problems, post in [Our Subreddit](https://www.reddit.com/r/homebrewery/) and we will help you. If you still have problems, post in [Our Subreddit](https://www.reddit.com/r/homebrewery/) and we will help you.
### Running the application via Docker ### Running the application via Docker
Please see the docs here: [README.DOCKER.md](./README.DOCKER.md) Please see the docs here: [README.DOCKER.md](./README.DOCKER.md)
### Lokal starten / Selbst hosten (Fork homebrewery-oidc) ### Lokal starten / Selbst hosten (Fork homebrewery-oidc)
```bash ```bash
cp .env.example .env # optional, alle Werte haben Entwicklungs-Defaults cp .env.example .env # optional, alle Werte haben Entwicklungs-Defaults
docker compose up --build # App + MongoDB -> http://localhost:8000 docker compose up --build # App + MongoDB -> http://localhost:8000
``` ```
`docker-compose.override.yml` (wird automatisch geladen) und `docker/` enthalten die Fork-Erweiterungen; `docker-compose.yml` bleibt Upstream-identisch. `docker-compose.override.yml` (wird automatisch geladen) und `docker/` enthalten die Fork-Erweiterungen; `docker-compose.yml` bleibt Upstream-identisch.
| Profil | Start | Ergebnis | | Profil | Start | Ergebnis |
|---|---|---| |---|---|---|
| `postgres` | `docker compose --profile postgres up -d postgres` | PostgreSQL 18 auf `127.0.0.1:5432` (ab M2) | | `postgres` | `docker compose --profile postgres up -d postgres` | PostgreSQL 18 auf `127.0.0.1:5432` (ab M2) |
| `keycloak` | `docker compose --profile keycloak up -d` | Keycloak :8080, Realm `homebrewery`, Client `homebrewery`/`dev-only-client-secret`, Nutzer `testuser`/`testuser-dev`, Admin `admin`/`admin-dev`. Discovery: `http://keycloak.localhost:8080/realms/homebrewery/.well-known/openid-configuration` (Start dauert 1–2 Min.) | | `keycloak` | `docker compose --profile keycloak up -d` | Keycloak :8080, Realm `homebrewery`, Client `homebrewery`/`dev-only-client-secret`, Nutzer `testuser`/`testuser-dev`, Admin `admin`/`admin-dev`. Discovery: `http://keycloak.localhost:8080/realms/homebrewery/.well-known/openid-configuration` (Start dauert 1–2 Min.) |
| `authentik` | `docker compose --profile authentik up -d` | authentik :9000, Provider/App `homebrewery` per Blueprint, gleicher Client und Nutzer, Admin `akadmin`/`admin-dev`. Discovery: `http://authentik.localhost:9000/application/o/homebrewery/.well-known/openid-configuration` | | `authentik` | `docker compose --profile authentik up -d` | authentik :9000, Provider/App `homebrewery` per Blueprint, gleicher Client und Nutzer, Admin `akadmin`/`admin-dev`. Discovery: `http://authentik.localhost:9000/application/o/homebrewery/.well-known/openid-configuration` |
Hinweise: Die IdPs laufen unter `keycloak.localhost:8080` bzw. `authentik.localhost:9000` (Issuer für Browser und App-Container identisch, Bindung nur an 127.0.0.1; `*.localhost` löst moderne Browser/OS automatisch auf, sonst `127.0.0.1 keycloak.localhost authentik.localhost` in `/etc/hosts`). Ports nur ändern, wenn Redirect-/Issuer-Einstellungen mitgezogen werden. Alle Zugangsdaten sind reine Dev-Werte, für den Betrieb in `.env` ersetzen. MongoDB 5+ benötigt eine CPU mit AVX; auf älteren CPUs/VMs `MONGO_TAG=4.4` setzen. Der authentik-Blueprint wird beim Erststart automatisch angewendet (dauert einige Minuten, bis die Discovery-URL 200 liefert). Hinweise: Die IdPs laufen unter `keycloak.localhost:8080` bzw. `authentik.localhost:9000` (Issuer für Browser und App-Container identisch, Bindung nur an 127.0.0.1; `*.localhost` löst moderne Browser/OS automatisch auf, sonst `127.0.0.1 keycloak.localhost authentik.localhost` in `/etc/hosts`). Ports nur ändern, wenn Redirect-/Issuer-Einstellungen mitgezogen werden. Alle Zugangsdaten sind reine Dev-Werte, für den Betrieb in `.env` ersetzen. MongoDB 5+ benötigt eine CPU mit AVX; auf älteren CPUs/VMs `MONGO_TAG=4.4` setzen. Der authentik-Blueprint wird beim Erststart automatisch angewendet (dauert einige Minuten, bis die Discovery-URL 200 liefert).
#### Login über OIDC (Keycloak, authentik, …) #### Login über OIDC (Keycloak, authentik, …)
Der Fork bringt einen generischen OIDC-Login (Authorization Code + PKCE) mit. Konfiguration nur über Umgebungsvariablen (`HB_OIDC_ISSUER`, `HB_OIDC_CLIENT_ID`, `HB_OIDC_CLIENT_SECRET`, `HB_PUBLIC_URL`, `HB_SESSION_SECRET`, …, Vorlage in `.env.example`). Die bisherigen Logins (`naturalcrit`: Benutzername/Passwort, Google) bleiben Standard und lassen sich über `HB_AUTH_PROVIDERS` abschalten, abgeschaltete Methoden verschwinden aus der UI und ihre Endpunkte sind gesperrt. Einrichtung, Variablen und Kontozuordnung: [docs/auth/README.md](./docs/auth/README.md), [Keycloak](./docs/auth/keycloak.md), [authentik](./docs/auth/authentik.md). Entscheidung: [ADR 0001](./docs/adr/0001-auth-oidc.md). Der Fork bringt einen generischen OIDC-Login (Authorization Code + PKCE) mit. Konfiguration nur über Umgebungsvariablen (`HB_OIDC_ISSUER`, `HB_OIDC_CLIENT_ID`, `HB_OIDC_CLIENT_SECRET`, `HB_PUBLIC_URL`, `HB_SESSION_SECRET`, …, Vorlage in `.env.example`). Die bisherigen Logins (`naturalcrit`: Benutzername/Passwort, Google) bleiben Standard und lassen sich über `HB_AUTH_PROVIDERS` abschalten, abgeschaltete Methoden verschwinden aus der UI und ihre Endpunkte sind gesperrt. Einrichtung, Variablen und Kontozuordnung: [docs/auth/README.md](./docs/auth/README.md), [Keycloak](./docs/auth/keycloak.md), [authentik](./docs/auth/authentik.md). Entscheidung: [ADR 0001](./docs/adr/0001-auth-oidc.md).
#### Brews in Git speichern #### Brews in Git speichern
Angemeldete OIDC-Nutzer können Brews in einem beliebigen Git-Repository speichern (HTTPS + Personal Access Token, providerneutral: Gitea, Forgejo, GitHub, GitLab, …). Speichern erzeugt einen Commit, beim Öffnen wird der Remote-Stand übernommen, Konflikte werden erkannt und angezeigt. Das Feature ist aus, solange `HB_GIT_TOKEN_KEY` fehlt. Einrichtung, Variablen, Sicherheit und Anbieter-Hinweise: [docs/git/README.md](./docs/git/README.md). Entscheidung: [ADR 0003](./docs/adr/0003-git-backend-und-teilen.md). Fehlersuche und nachträgliches Aktivieren: [docs/git/README.md](./docs/git/README.md#fehlersuche--nachträglich-aktivieren). Angemeldete OIDC-Nutzer können Brews in einem beliebigen Git-Repository speichern (HTTPS + Personal Access Token, providerneutral: Gitea, Forgejo, GitHub, GitLab, …). Speichern erzeugt einen Commit, beim Öffnen wird der Remote-Stand übernommen, Konflikte werden erkannt und angezeigt. Das Feature ist aus, solange `HB_GIT_TOKEN_KEY` fehlt. Einrichtung, Variablen, Sicherheit und Anbieter-Hinweise: [docs/git/README.md](./docs/git/README.md). Entscheidung: [ADR 0003](./docs/adr/0003-git-backend-und-teilen.md). Fehlersuche und nachträgliches Aktivieren: [docs/git/README.md](./docs/git/README.md#fehlersuche--nachträglich-aktivieren).
#### Betrieb mit dem veröffentlichten Image #### Betrieb mit dem veröffentlichten Image
Compose-Vorlage (App + PostgreSQL 18, OIDC, Git, Bild-Upload) ohne Repo-Checkout: [docs/deploy/README.md](./docs/deploy/README.md). Wichtig: Jede `HB_*`-Variable muss im Container ankommen (`environment:`/`env_file:`), und nach Änderungen gilt `docker compose up -d`, nicht `restart`. Compose-Vorlage (App + PostgreSQL 18, OIDC, Git, Bild-Upload) ohne Repo-Checkout: [docs/deploy/README.md](./docs/deploy/README.md). Wichtig: Jede `HB_*`-Variable muss im Container ankommen (`environment:`/`env_file:`), und nach Änderungen gilt `docker compose up -d`, nicht `restart`.
### Running the application on FreeBSD or FreeNAS ### Running the application on FreeBSD or FreeNAS
Please see the docs here: [README.FreeBSD.md](./README.FREEBSD.md) Please see the docs here: [README.FreeBSD.md](./README.FREEBSD.md)
### Standalone PHB Stylesheet ### Standalone PHB Stylesheet
If you just want the stylesheet that is generated to make pages look like they If you just want the stylesheet that is generated to make pages look like they
are from the Player's Handbook, you will find it in the are from the Player's Handbook, you will find it in the
[phb.standalone.css](./phb.standalone.css) file. [phb.standalone.css](./phb.standalone.css) file.
If you are developing locally and would like to generate your own, follow the If you are developing locally and would like to generate your own, follow the
above steps and then run `npm run phb`. above steps and then run `npm run phb`.
## Issues, Suggestions, and Bugs ## Issues, Suggestions, and Bugs
If you run into any issues using The Homebrewery or have suggestions for If you run into any issues using The Homebrewery or have suggestions for
improvement, please submit an issue [on GitHub][repo-issues-url]. improvement, please submit an issue [on GitHub][repo-issues-url].
You can also get help for issues on the subreddit [r/homebrewery][subreddit-url] You can also get help for issues on the subreddit [r/homebrewery][subreddit-url]
[repo-issues-url]: https://github.com/naturalcrit/homebrewery/issues [repo-issues-url]: https://github.com/naturalcrit/homebrewery/issues
[subreddit-url]: https://www.reddit.com/r/homebrewery [subreddit-url]: https://www.reddit.com/r/homebrewery
## Changelog ## Changelog
You can check out the [changelog](./changelog.md). You can check out the [changelog](./changelog.md).
## License ## License
This project is licensed under the [MIT license](./license), which means you This project is licensed under the [MIT license](./license), which means you
are free to use The Homebrewery in any way that you want, except for claiming are free to use The Homebrewery in any way that you want, except for claiming
that you made it yourself. that you made it yourself.
If you wish to sell, or in some way gain profit for, what's created on this site, If you wish to sell, or in some way gain profit for, what's created on this site,
it's your responsibility to ensure you have the proper licenses/rights for any it's your responsibility to ensure you have the proper licenses/rights for any
images or resources used. images or resources used.
## Contributing ## Contributing
You are welcome to contribute to the development and maintenance of the You are welcome to contribute to the development and maintenance of the
project! There are several ways of doing that: project! There are several ways of doing that:
- At the moment, we have a huge backlog of [issues][repo-issues-url] and some - At the moment, we have a huge backlog of [issues][repo-issues-url] and some
of them are outdated, duplicates, or don't contain any useful info. To help, you can [mark duplicates][github-mark-duplicate-url], try to of them are outdated, duplicates, or don't contain any useful info. To help, you can [mark duplicates][github-mark-duplicate-url], try to
reproduce some complex or weird issues, try finding a workaround for a reproduce some complex or weird issues, try finding a workaround for a
reported bug, or just mention our issue managers team to let them know about reported bug, or just mention our issue managers team to let them know about
outdated issues via `@naturalcrit/issue-managers`. outdated issues via `@naturalcrit/issue-managers`.
- Our [subreddit][subreddit-url] is constantly growing and there are number of - Our [subreddit][subreddit-url] is constantly growing and there are number of
bug reports. Any help with sorting them out is very welcome. bug reports. Any help with sorting them out is very welcome.
- And of course you can contribute by fixing a bug or implementing a new - And of course you can contribute by fixing a bug or implementing a new
feature by yourself, we are waiting for your feature by yourself, we are waiting for your
[pull requests][github-pr-docs-url]! [pull requests][github-pr-docs-url]!
Anyway, if you would like to get in touch with the team and discuss/coordinate Anyway, if you would like to get in touch with the team and discuss/coordinate
your contribution to the project, please join our [gitter chat][gitter-url]. your contribution to the project, please join our [gitter chat][gitter-url].
[github-mark-duplicate-url]: https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/about-duplicate-issues-and-pull-requests [github-mark-duplicate-url]: https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/about-duplicate-issues-and-pull-requests
[github-pr-docs-url]: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request [github-pr-docs-url]: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
[gitter-url]: https://gitter.im/naturalcrit/Lobby [gitter-url]: https://gitter.im/naturalcrit/Lobby
+1
View File
@@ -43,6 +43,7 @@ services:
HB_GIT_OPEN_TIMEOUT_MS: ${HB_GIT_OPEN_TIMEOUT_MS:-} HB_GIT_OPEN_TIMEOUT_MS: ${HB_GIT_OPEN_TIMEOUT_MS:-}
HB_GIT_MAX_FILE_BYTES: ${HB_GIT_MAX_FILE_BYTES:-} HB_GIT_MAX_FILE_BYTES: ${HB_GIT_MAX_FILE_BYTES:-}
HB_GIT_MAX_CONCURRENCY: ${HB_GIT_MAX_CONCURRENCY:-} HB_GIT_MAX_CONCURRENCY: ${HB_GIT_MAX_CONCURRENCY:-}
HB_GIT_WORKDIR: ${HB_GIT_WORKDIR:-}
HB_GIT_COMMITTER_NAME: ${HB_GIT_COMMITTER_NAME:-} HB_GIT_COMMITTER_NAME: ${HB_GIT_COMMITTER_NAME:-}
HB_GIT_COMMITTER_EMAIL: ${HB_GIT_COMMITTER_EMAIL:-} HB_GIT_COMMITTER_EMAIL: ${HB_GIT_COMMITTER_EMAIL:-}
# Bild-Upload (ADR 0004, nur mit aktivem Git-Backend) # Bild-Upload (ADR 0004, nur mit aktivem Git-Backend)
+3 -1
View File
@@ -1,6 +1,7 @@
# Kopieren nach .env (neben compose.yaml). Keine Secrets einchecken. # Kopieren nach .env (neben compose.yaml). Keine Secrets einchecken.
# HB_IMAGE=git.morlana.online/f.weber/homebrewery-oidc:v1.0.0 # HB_IMAGE=git.morlana.online/f.weber/homebrewery-oidc:v1.0.0
APP_PORT=8000 APP_PORT=8000
# Nur URL-sichere Zeichen (A-Z a-z 0-9 - _ . ~), da das Passwort in der Postgres-URL steht (z. B. openssl rand -hex 24)
POSTGRES_PASSWORD=bitte-aendern POSTGRES_PASSWORD=bitte-aendern
HB_PUBLIC_URL=https://brew.example.org HB_PUBLIC_URL=https://brew.example.org
@@ -12,4 +13,5 @@ HB_OIDC_CLIENT_SECRET=bitte-aendern
# Git-Backend: leer = aus. Erzeugen: openssl rand -base64 32 (genau 32 Byte, sonst Startabbruch; Schlüssel sichern!) # Git-Backend: leer = aus. Erzeugen: openssl rand -base64 32 (genau 32 Byte, sonst Startabbruch; Schlüssel sichern!)
HB_GIT_TOKEN_KEY= HB_GIT_TOKEN_KEY=
HB_GIT_ALLOWED_HOSTS=git.example.org # Optional: Allowlist erlaubter Git-Hosts (leer = alle öffentlichen Hosts erlaubt)
# HB_GIT_ALLOWED_HOSTS=git.example.org
+1 -1
View File
@@ -44,7 +44,7 @@ Prüfen, in dieser Reihenfolge:
1. **Kommt der Schlüssel im Container an?** `docker compose exec <service> printenv HB_GIT_TOKEN_KEY | wc -c`: `0` oder 1. **Kommt der Schlüssel im Container an?** `docker compose exec <service> printenv HB_GIT_TOKEN_KEY | wc -c`: `0` oder
Fehler = nicht gesetzt; ein gültiger Schlüssel (32 Byte, base64) hat 45 Zeichen (44 + Zeilenumbruch). Fehler = nicht gesetzt; ein gültiger Schlüssel (32 Byte, base64) hat 45 Zeichen (44 + Zeilenumbruch).
2. **Startlog** (`docker compose logs <service>`): `Git-Backend aktiv (kid=…, Host-Allowlist: ja|nein)` = an; 2. **Startlog** (`docker compose logs <service>`): `Git-Backend aktiv (kid=…, alte Schlüssel: n, Host-Allowlist: ja (n)|nein)` = an;
`Git-Backend deaktiviert: HB_GIT_TOKEN_KEY ist nicht gesetzt` = aus. Der Log enthält nie den Schlüssel. `Git-Backend deaktiviert: HB_GIT_TOKEN_KEY ist nicht gesetzt` = aus. Der Log enthält nie den Schlüssel.
3. **API**: `curl -i <HB_PUBLIC_URL>/api/git/connections`: 3. **API**: `curl -i <HB_PUBLIC_URL>/api/git/connections`:
`503` + `G10` = Backend aus (Schritt 1/2), `401` = nicht angemeldet, `403` + `G07` = Sitzung ohne OIDC-Konto, `503` + `G10` = Backend aus (Schritt 1/2), `401` = nicht angemeldet, `403` + `G07` = Sitzung ohne OIDC-Konto,