Skip to content

Conversation

eckynde
Copy link

@eckynde eckynde commented Jul 26, 2025

I've recently set up Abrechnung using docker compose and stumbled upon a small discrepancy in .env.example (because registration emails included a link to localhost).

As far as I can tell, the enviroment variables ABRECHNUNG_SERVICE__URL aka service.url and ABRECHNUNG_SERVICE__BASE_URL aka service.base_url are not used.

Instead it should be ABRECHNUNG_API__BASE_URL aka api.base_url - as used in abrechnung/mailer.py and defined in abrechnung/config.py (using import from sftkit sftkit/http/_config.py). I believe this small oversight might stem from v1.0.0 which changed the config definition.

This PR changes .env.example accordingly.

Additional thought

The correctness and necessity of ports in the config should probably also be checked. I wouldn't notice as I'm running Abrechnung behind a reverse proxy using docker and it might be different for other setups. If the port could be omitted from the config, it would improve the clarity of the .env file a lot. Unless I'm missing something (maybe the Prometheus integration), I believe the only relevant port for a docker deployment is the default :80 on the frontend container as that is all that should be needed for configuring the reverse proxy.

If I've missed anything, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant