forgejo: enable repo search (indexer), save login
All checks were successful
Flake checks / Check (pull_request) Successful in 7m54s

cookie for 365 days instead of default 7 days.
Caveat for the repo indexer is that repository size on disk will grow
by factor of 6. Forgejo repositories currently use 4.7GB on disk, with
3.3GB being a nixpkgs fork.
This commit is contained in:
teutat3s 2024-04-05 23:29:49 +02:00
parent 76ca43142a
commit c5159dd66d
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -132,6 +132,19 @@
# the value of DEFAULT_ACTIONS_URL is prepended to it. # the value of DEFAULT_ACTIONS_URL is prepended to it.
DEFAULT_ACTIONS_URL = "https://code.forgejo.org"; DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
}; };
# https://forgejo.org/docs/next/admin/recommendations/#securitylogin_remember_days
security = {
LOGIN_REMEMBER_DAYS = 365;
};
# https://forgejo.org/docs/next/admin/config-cheat-sheet/#indexer-indexer
indexer = {
REPO_INDEXER_ENABLED = true;
REPO_INDEXER_PATH = "indexers/repos.bleve";
MAX_FILE_SIZE = 1048576;
REPO_INDEXER_EXCLUDE = "resources/bin/**";
};
}; };
}; };