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/)
|
[based on https://docs.gitea.io/en-us/backup-and-restore/](https://docs.gitea.io/en-us/backup-and-restore/)
|
||||||
|
|
||||||
@imbert:
|
### @imbert
|
||||||
```shell
|
```shell
|
||||||
sudo -u git gitea dump -c /etc/gitea/app.ini
|
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/`
|
- copied `gitea-dump-*.zip` from imbert to `/tmp/`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
/etc/nixos/migrate.sh
|
/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;
|
boot.isContainer = true;
|
||||||
|
# creates /sbin/init
|
||||||
|
boot.loader.initScript.enable = true;
|
||||||
nix.useSandbox = false;
|
nix.useSandbox = false;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -10,7 +12,7 @@
|
||||||
./modules/gitea.nix
|
./modules/gitea.nix
|
||||||
|
|
||||||
./modules/admin.nix
|
./modules/admin.nix
|
||||||
#./modules/ssh.nix
|
./modules/ssh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
|
|
|
@ -33,6 +33,13 @@
|
||||||
SSH_DOMAIN = domain;
|
SSH_DOMAIN = domain;
|
||||||
SSH_PORT = ssh.clonePort;
|
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