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:
parent
c32a1846e0
commit
25a87f24d9
|
@ -38,7 +38,11 @@ in {
|
||||||
cookieSecure = true;
|
cookieSecure = true;
|
||||||
# Only log what's important, but Info is necessary for fail2ban to work
|
# Only log what's important, but Info is necessary for fail2ban to work
|
||||||
log.level = "Info";
|
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 = ''
|
services.fail2ban.jails.gitea = ''
|
||||||
|
|
Loading…
Reference in a new issue