feat: replace gitea with forgejo and move to MOMO
This commit is contained in:
parent
87903828aa
commit
157dc93980
10 changed files with 50 additions and 63 deletions
|
|
@ -58,11 +58,6 @@
|
|||
answer = "192.168.2.40";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
domain = config.services.gitea.settings.server.DOMAIN;
|
||||
answer = "192.168.2.40";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
domain = config.services.nextcloud.hostName;
|
||||
answer = "192.168.2.40";
|
||||
|
|
@ -88,6 +83,11 @@
|
|||
answer = "144.24.175.22";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
domain = "git.dryb.org";
|
||||
answer = "momo.dryb.org";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
domain = "syncthing.dryb.org";
|
||||
answer = "momo.dryb.org";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
./adguard-home.nix
|
||||
./anki.nix
|
||||
./ddclient.nix
|
||||
./gitea.nix
|
||||
./homepage-dashboard.nix
|
||||
./jellyfin.nix
|
||||
./nextcloud.nix
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets.passwords-gitea-db = {
|
||||
file = ../../../secrets/passwords/gitea/db.age;
|
||||
mode = "640";
|
||||
owner = config.services.gitea.user;
|
||||
group = config.services.gitea.group;
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
appName = "dryb.org: Gitea Service";
|
||||
database = {
|
||||
type = "postgres";
|
||||
passwordFile = config.age.secrets.passwords-gitea-db.path;
|
||||
};
|
||||
settings = {
|
||||
server = rec {
|
||||
HTTP_PORT = 8003;
|
||||
DOMAIN = "git.dryb.org";
|
||||
ROOT_URL = "http://${DOMAIN}/";
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -98,13 +98,6 @@
|
|||
icon = "nextcloud";
|
||||
};
|
||||
}
|
||||
{
|
||||
"Gitea" = {
|
||||
description = "https://git.dryb.org";
|
||||
href = "https://git.dryb.org";
|
||||
icon = "gitea";
|
||||
};
|
||||
}
|
||||
{
|
||||
"Anki" = {
|
||||
description = "https://anki.dryb.org";
|
||||
|
|
|
|||
|
|
@ -28,13 +28,6 @@
|
|||
useACMEHost = "dryb.org";
|
||||
forceSSL = true;
|
||||
};
|
||||
virtualHosts."${config.services.gitea.settings.server.DOMAIN}" = {
|
||||
useACMEHost = "dryb.org";
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8003";
|
||||
};
|
||||
};
|
||||
virtualHosts."anki.dryb.org" = {
|
||||
useACMEHost = "dryb.org";
|
||||
forceSSL = true;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [
|
||||
config.services.gitea.user
|
||||
config.services.paperless.user
|
||||
];
|
||||
|
||||
|
|
@ -18,13 +17,11 @@
|
|||
# type database DBuser auth-method mapping
|
||||
authentication = ''
|
||||
local all postgres peer
|
||||
local gitea all ident map=gitea-users
|
||||
local paperless all ident map=paperless-users
|
||||
'';
|
||||
|
||||
# name sysuser dbuser
|
||||
identMap = ''
|
||||
gitea-users gitea gitea
|
||||
paperless-users paperless paperless
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue