Reduce gitea logging & disable basic auth for api

- Disabled SQL logs because they quickly fill up the logs and aren't
  useful, currently. Also, smaller logs = easier job for fail2ban.
- Disabled basic auth because it's the least secure method of
  interacting with the gitea API. Tokens/oauth are better.
This commit is contained in:
Henrik Lissner 2021-01-31 18:20:58 -05:00
parent c32a1846e0
commit 25a87f24d9

View file

@ -38,7 +38,11 @@ in {
cookieSecure = true;
# Only log what's important, but Info is necessary for fail2ban to work
log.level = "Info";
settings.server.DISABLE_ROUTER_LOG = true;
settings = {
server.DISABLE_ROUTER_LOG = true;
database.LOG_SQL = false;
service.ENABLE_BASIC_AUTHENTICATION = false;
};
};
services.fail2ban.jails.gitea = ''