added mail configuration for password recovery
This commit is contained in:
parent
0041e102d3
commit
8bf73e508f
15
Migration.md
15
Migration.md
|
@ -2,13 +2,24 @@
|
|||
|
||||
[based on https://docs.gitea.io/en-us/backup-and-restore/](https://docs.gitea.io/en-us/backup-and-restore/)
|
||||
|
||||
@imbert:
|
||||
### @imbert
|
||||
```shell
|
||||
sudo -u git gitea dump -c /etc/gitea/app.ini
|
||||
```
|
||||
|
||||
@gitea.hq.c3d2.de (lxc 315 @server6):
|
||||
### @gitea.hq.c3d2.de (lxc 315 @server6)
|
||||
|
||||
- copied `gitea-dump-*.zip` from imbert to `/tmp/`
|
||||
|
||||
```shell
|
||||
/etc/nixos/migrate.sh
|
||||
```
|
||||
|
||||
Check consistency:
|
||||
|
||||
```shell
|
||||
su gitea
|
||||
cd
|
||||
export GITEA_WORK_DIR=/var/lib/gitea
|
||||
/nix/store/*-gitea-1.15.2/bin/gitea doctor --all
|
||||
```
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
{
|
||||
boot.isContainer = true;
|
||||
# creates /sbin/init
|
||||
boot.loader.initScript.enable = true;
|
||||
nix.useSandbox = false;
|
||||
|
||||
imports = [
|
||||
|
@ -10,7 +12,7 @@
|
|||
./modules/gitea.nix
|
||||
|
||||
./modules/admin.nix
|
||||
#./modules/ssh.nix
|
||||
./modules/ssh.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "21.11";
|
||||
|
|
|
@ -33,6 +33,13 @@
|
|||
SSH_DOMAIN = domain;
|
||||
SSH_PORT = ssh.clonePort;
|
||||
};
|
||||
mailer = {
|
||||
ENABLED = true;
|
||||
FROM = "gitea@c3d2.de";
|
||||
MAILER_TYPE = "smtp";
|
||||
HOST = "mail.c3d2.de:465";
|
||||
IS_TLS_ENABLED = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Reference in New Issue