summaryrefslogtreecommitdiff
path: root/internal/server
Commit message (Collapse)AuthorAge
* config: add tests for config loading and page handlersmihna1232026-09-04
| | | | | | | | | Cover the defaults/system/user cascade, partial overrides, malformed files and base-url validation, plus DefaultPath resolution. An empty value in an ini file counts as unset, so that is pinned down too. Add the first handlers tests: routing, the instance name reaching the template, and escaping of operator-supplied config in the page.
* config: add config package and wire it into server and handlersmihna1232026-09-04
| | | | | | | | | | | Replace the hardcoded server.Config with an ini-backed config package that reads /etc/openstore/openstore.conf then the user's config file, so user settings override system ones and both override the built-in defaults. Missing files are ignored rather than fatal. Move route registration into a handlers package that owns the templates and builds a Page view model, which removes the server -> handlers import cycle along with the setter-based context injection.
* listing: use slog.DiscardHandler instead of creating a new onemihna1232026-08-23
|
* test: add tests for servermihna1232026-08-21
|
* server: use server config to render the index templatemihna1232026-08-21
|
* logs: build up sloger attrs to conditionaly log xff headermihna1232026-08-21
|
* logs: handle all loggs with slogmihna1232026-08-21
|
* server: move logging from the handler into middlewaremihna1232026-08-21
|
* server: serve html template from embedded fsmihna1232026-08-21
|
* server: move server handler to server packagemihna1232026-08-21