owpengram-server/internal
Astra 4cbd4c0c9e
Some checks failed
CI / Go tests (push) Has been cancelled
CI / Admin web build (push) Has been cancelled
CI / Grammy store bot (push) Has been cancelled
CI / Docker main topology smoke (push) Has been cancelled
admin: fix env editor crash and ship .env.example into the image
ReadEnvGroups returned (nil, nil) when .env.example wasn't found, and that
nil slice marshaled to JSON null instead of []. The admin UI's env editor
unconditionally calls .reduce()/.map() on the response, so it crashed on
load with "Cannot read properties of null" -- and .env.example was never
copied into the container image in the first place, so this was always the
production code path, not an edge case.

Fixed the nil-slice response and added .env.example to the image so the
editor actually has a template of available settings to show. The real
current values still require the deploy host to mount its actual .env file
into the owpengram-admin container at /app/.env (procctl.Manager.Root is
just os.Getwd(), i.e. the container's /app workdir) -- that's a systemd
Quadlet unit change on the deploy host, not something this commit can fix on
its own.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 17:02:02 +01:00
..
admin usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
adminapi usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
app botfather: fix two remaining call sites after branding rebase 2026-09-14 12:12:13 +01:00
botapi botapi: getChatMemberCount, getChatMember, and a fuller getChat 2026-09-14 12:00:03 +01:00
branding merged with fixes 2026-09-09 02:49:30 +03:00
compat merged with fixes 2026-09-09 02:49:30 +03:00
config merged with fixes 2026-09-09 02:49:30 +03:00
domain rpc: return PASSWORD_MISSING for channel transfer without 2FA 2026-09-14 12:05:28 +01:00
hoststats fixes for storage managament 2026-09-03 08:33:06 +03:00
identity improvements for first-time setup 2026-09-08 17:56:26 +03:00
links Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877 2026-08-03 23:29:20 +03:00
loadharness merged with fixes 2026-09-09 02:49:30 +03:00
loadtest merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
mtprotoedge merged with fixes 2026-09-09 02:49:30 +03:00
observability merged with fixes 2026-09-09 02:49:30 +03:00
otpdelivery smtp: add Date and Message-ID headers to outgoing mail 2026-09-14 12:05:28 +01:00
postresponse fix: sync MTProto startup and egress fixes 2026-07-13 19:05:41 +08:00
procctl admin: fix env editor crash and ship .env.example into the image 2026-09-14 17:02:02 +01:00
readmodelcache merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
rpc deps: bump github.com/iamxvbaba/td to v1.3.2 2026-09-14 12:09:36 +01:00
rpcresult merged with fixes 2026-09-09 02:49:30 +03:00
seed fix for gif and emojies categories 2026-08-24 22:42:40 +03:00
sfu translated all logs to english 2026-07-25 07:31:27 +03:00
store usernames: report reserved names as taken in the check paths too 2026-09-14 12:05:28 +01:00
telegramloginhttp merged with fixes 2026-09-09 02:49:30 +03:00
transport merged with fixes 2026-09-09 02:49:30 +03:00
turnsrv translated all logs to english 2026-07-25 07:31:27 +03:00
updatecdn merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
web merged with fixes 2026-09-09 02:49:30 +03:00
webauthn merged with fixes 2026-09-09 02:49:30 +03:00