Deploy forgejo on nimbus
This commit is contained in:
parent
888cf87c0f
commit
ea2a2d81e5
5 changed files with 39 additions and 5 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
../../modules/nixos/tailscale.nix
|
../../modules/nixos/tailscale.nix
|
||||||
../../modules/nixos/caddy.nix
|
../../modules/nixos/caddy.nix
|
||||||
../../modules/nixos/matrix.nix
|
../../modules/nixos/matrix.nix
|
||||||
|
../../modules/nixos/forgejo.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Workaround for https://github.com/NixOS/nix/issues/8502
|
# Workaround for https://github.com/NixOS/nix/issues/8502
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,11 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
"git.jankremer.de".extraConfig = # caddyfile
|
||||||
|
''
|
||||||
|
reverse_proxy localhost:3000
|
||||||
|
'';
|
||||||
|
|
||||||
"jankremer.eu".extraConfig = # caddyfile
|
"jankremer.eu".extraConfig = # caddyfile
|
||||||
''
|
''
|
||||||
redir https://jankremer.de{uri} permanent
|
redir https://jankremer.de{uri} permanent
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,13 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
domain = "git.jankremer.de";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
age.secrets.forgejo-mailer = {
|
||||||
|
file = ../../modules/secrets/forgejo-mailer.age;
|
||||||
|
owner = "forgejo";
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
forgejo = {
|
forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -8,14 +16,23 @@
|
||||||
settings = {
|
settings = {
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "git.alpine-centauri.ts.net";
|
DOMAIN = domain;
|
||||||
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}";
|
ROOT_URL = "https://${domain}";
|
||||||
HTTP_PORT = 3010;
|
START_SSH_SERVER = false;
|
||||||
|
SSH_PORT = 22;
|
||||||
};
|
};
|
||||||
actions = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
DEFAULT_ACTIONS_URL = "github";
|
SMTP_ADDR = "smtp.mail.me.com";
|
||||||
|
SMTP_PORT = 587;
|
||||||
|
FROM = "git@jankremer.de";
|
||||||
|
USER = "janurskremer@me.com";
|
||||||
|
PASSWD_URI = "file:${config.age.secrets.forgejo-mailer.path}";
|
||||||
};
|
};
|
||||||
|
# actions = {
|
||||||
|
# ENABLED = true;
|
||||||
|
# DEFAULT_ACTIONS_URL = "github";
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
9
modules/secrets/forgejo-mailer.age
Normal file
9
modules/secrets/forgejo-mailer.age
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 2otpcg 3/3V9NuhhEEvC5Czd52LroF3gb+5R8kVMwUQEdjQPz4
|
||||||
|
W69B15eEI4+0v+TRKzS9mCs1+Gwjd2XeS9lykr5pxyQ
|
||||||
|
-> ssh-ed25519 40YjXQ Ie0rCVXk2DtsE/V8pcL3o7UXD1U/1Ag/knDrDOr0REw
|
||||||
|
Zuc42+JOtssFl7puQvHRdLuPpA51qgykiQ9/9xJlSK0
|
||||||
|
-> ssh-ed25519 wbs2Dw qwhCUJQmXljIcEO8ysfSFpFPWqdmW5ysMhYxEW9QmUU
|
||||||
|
w5nSiL+pAX36RG2A/V4QijFjqVzIZ+5/HsbS/C2I8S0
|
||||||
|
--- Rm8JLyJwpZp1BBfARjKFz7vnJjGagN1VOgpHSmI7zDU
|
||||||
|
‚C_.¹¡Ìâ"׋:
`F…ƒU¤Ø_ÀŒ_)ÚžŸkRÉ7|I.b±áö)4:
|
||||||
|
|
@ -2,6 +2,7 @@ let
|
||||||
malus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTpgedzJ7vs3GMOjUeQGkAzGhNZRhvMMz9Z1whaWieE";
|
malus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTpgedzJ7vs3GMOjUeQGkAzGhNZRhvMMz9Z1whaWieE";
|
||||||
galanthus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZYQao2OKQxyic+I327VZ7lQECh9hSS9cgsls3e/a1u";
|
galanthus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZYQao2OKQxyic+I327VZ7lQECh9hSS9cgsls3e/a1u";
|
||||||
nimbus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDIjr3r9RVTzMPNvfBWxVei8aGMlay3smMhhuGxEMRaj";
|
nimbus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDIjr3r9RVTzMPNvfBWxVei8aGMlay3smMhhuGxEMRaj";
|
||||||
|
|
||||||
all = [
|
all = [
|
||||||
malus
|
malus
|
||||||
galanthus
|
galanthus
|
||||||
|
|
@ -13,4 +14,5 @@ in
|
||||||
"paperless-admin.age".publicKeys = all;
|
"paperless-admin.age".publicKeys = all;
|
||||||
"tailscale.age".publicKeys = all;
|
"tailscale.age".publicKeys = all;
|
||||||
"matrix-registration-token.age".publicKeys = all;
|
"matrix-registration-token.age".publicKeys = all;
|
||||||
|
"forgejo-mailer.age".publicKeys = all;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue