Files
gitea/.claude/settings.local.json
T
jason 963dbf8ab5 🐛 Map container env vars to gitea init variables 🐛
Wire CONTAINER_DEFAULT_DATABASE_TYPE, CONTAINER_PROTOCOL,
CONTAINER_WEB_SERVER_PROTOCOL, WEB_PORT, ENV_PORTS, and
DATABASE_DIR_SQLITE to the correct gitea init variables so
all REPLACE_* tokens in app.ini are substituted correctly
on first container start.
- rootfs/usr/local/etc/docker/init.d/08-gitea.sh: map
CONTAINER_DEFAULT_DATABASE_TYPE → DATABASE_SERVICE_TYPE +
GITEA_SQL_TYPE (sqlite→sqlite3, postgres, mysql, mssql);
map CONTAINER_PROTOCOL/CONTAINER_WEB_SERVER_PROTOCOL →
SERVICE_PROTOCOL; map WEB_PORT/ENV_PORTS → SERVICE_PORT;
initialise DATABASE_DIR from DATABASE_DIR_SQLITE env var;
fix CUSTOM_PATH export to point at $CONF_DIR/custom

.claude/settings.local.json
rootfs/usr/local/etc/docker/init.d/08-gitea.sh
2026-06-09 15:39:38 -04:00

14 lines
720 B
JSON

{
"permissions": {
"allow": [
"Bash(script-lint *)",
"WebFetch(domain:docs.gitea.com)",
"Bash(cp /tmp/templates/gitea/rootfs/usr/local/bin/entrypoint.sh /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/bin/entrypoint.sh)",
"Bash(cp /tmp/templates/gitea/rootfs/usr/local/etc/docker/functions/entrypoint.sh /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/etc/docker/functions/entrypoint.sh)",
"Bash(gen-dockerfile --help)",
"Bash(rm -f /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/etc/docker/init.d/.git/COMMIT_MESS)",
"Bash(rmdir /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/etc/docker/init.d/.git)"
]
}
}