mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
feat: gitea - use scrypt instead of pbkdf_v2
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
{pkgs, ...}: let
|
{pkgs, ...}: {
|
||||||
in {
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/misc/gitea.nix
|
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/misc/gitea.nix
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -32,6 +31,12 @@ in {
|
|||||||
# NOTE: The first registered user will be the administrator,
|
# NOTE: The first registered user will be the administrator,
|
||||||
# so this parameter should NOT be set before the first user registers!
|
# so this parameter should NOT be set before the first user registers!
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
# https://docs.gitea.com/administration/config-cheat-sheet#security-security
|
||||||
|
security = {
|
||||||
|
LOGIN_REMEMBER_DAYS = 31;
|
||||||
|
PASSWORD_HASH_ALGO = "scrypt";
|
||||||
|
MIN_PASSWORD_LENGTH = 10;
|
||||||
|
};
|
||||||
|
|
||||||
# "cron.sync_external_users" = {
|
# "cron.sync_external_users" = {
|
||||||
# RUN_AT_START = true;
|
# RUN_AT_START = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user