Compare commits
No commits in common. "af06b6d5efe86624c964375035f7ccac0e861e89" and "6328d80bdf648ea73e5122704efab1681532ea52" have entirely different histories.
af06b6d5ef
...
6328d80bdf
6 changed files with 12 additions and 91 deletions
|
|
@ -42,22 +42,18 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# hardened openssh
|
# hardened openssh
|
||||||
services = {
|
services.openssh = {
|
||||||
fail2ban.enable = true;
|
allowSFTP = false;
|
||||||
endlessh = {
|
extraConfig = ''
|
||||||
enable = true;
|
AllowTcpForwarding yes
|
||||||
port = 22;
|
X11Forwarding no
|
||||||
openFirewall = true;
|
AllowAgentForwarding no
|
||||||
};
|
AllowStreamLocalForwarding no
|
||||||
openssh = {
|
AuthenticationMethods publickey
|
||||||
enable = true;
|
'';
|
||||||
ports = [ 5011 ];
|
settings = {
|
||||||
settings = {
|
KbdInteractiveAuthentication = false;
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
|
||||||
PermitRootLogin = "no";
|
|
||||||
AllowUsers = [ "srv" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
"cryptpad"
|
"cryptpad"
|
||||||
"fi33.buzz"
|
"fi33.buzz"
|
||||||
"gatus"
|
"gatus"
|
||||||
"forgejo"
|
|
||||||
"homepage-dashboard"
|
"homepage-dashboard"
|
||||||
"immich"
|
"immich"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
|
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
port = 5027;
|
|
||||||
certloc = "/var/lib/acme/fi33.buzz";
|
|
||||||
hostname = "git.fi33.buzz";
|
|
||||||
url = "https://git.fi33.buzz";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
services = {
|
|
||||||
forgejo = {
|
|
||||||
enable = true;
|
|
||||||
dump = {
|
|
||||||
enable = true;
|
|
||||||
interval = "00:00";
|
|
||||||
};
|
|
||||||
lfs.enable = true;
|
|
||||||
settings = {
|
|
||||||
server = {
|
|
||||||
# keep-sorted start
|
|
||||||
DOMAIN = hostname;
|
|
||||||
HTTP_PORT = port;
|
|
||||||
ROOT_URL = url;
|
|
||||||
SSH_PORT = lib.head config.services.openssh.ports;
|
|
||||||
# keep-sorted end
|
|
||||||
};
|
|
||||||
service.DISABLE_REGISTRATION = true;
|
|
||||||
};
|
|
||||||
user = "git";
|
|
||||||
group = "git";
|
|
||||||
};
|
|
||||||
|
|
||||||
openssh.settings.AllowUsers = [ "git" ];
|
|
||||||
|
|
||||||
borgbackup.jobs = {
|
|
||||||
onsite.paths = [ "/var/lib/forgejo" ];
|
|
||||||
offsite.paths = [ "/var/lib/forgejo" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
caddy.virtualHosts.${hostname}.extraConfig = ''
|
|
||||||
reverse_proxy localhost:${toString port}
|
|
||||||
tls ${certloc}/cert.pem ${certloc}/key.pem {
|
|
||||||
protocols tls1.3
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
users = {
|
|
||||||
users.git = {
|
|
||||||
home = "/var/lib/forgejo";
|
|
||||||
useDefaultShell = true;
|
|
||||||
group = "git";
|
|
||||||
isSystemUser = true;
|
|
||||||
};
|
|
||||||
groups.git = { };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -23,7 +23,6 @@ let
|
||||||
|
|
||||||
secrets = [
|
secrets = [
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
"forgejo-read-token"
|
|
||||||
"immich"
|
"immich"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"kavita-api"
|
"kavita-api"
|
||||||
|
|
@ -80,18 +79,6 @@ in
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"Media Management" = [
|
"Media Management" = [
|
||||||
{
|
|
||||||
Forgejo = {
|
|
||||||
description = "Software forge";
|
|
||||||
icon = "forgejo.svg";
|
|
||||||
href = "https://git.fi33.buzz/";
|
|
||||||
widget = {
|
|
||||||
type = "gitea";
|
|
||||||
url = "https://git.fi33.buzz/";
|
|
||||||
key = "@forgejo-read-token@";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
Radarr = {
|
Radarr = {
|
||||||
description = "Movie organizer/manager";
|
description = "Movie organizer/manager";
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -18,7 +18,6 @@ in
|
||||||
"borgbackup-offsite.age".publicKeys = users;
|
"borgbackup-offsite.age".publicKeys = users;
|
||||||
"borgbackup-onsite.age".publicKeys = users;
|
"borgbackup-onsite.age".publicKeys = users;
|
||||||
"copyparty.age".publicKeys = users;
|
"copyparty.age".publicKeys = users;
|
||||||
"forgejo-read-token.age".publicKeys = users;
|
|
||||||
"gatus.age".publicKeys = users;
|
"gatus.age".publicKeys = users;
|
||||||
"git_signing_key.age".publicKeys = users;
|
"git_signing_key.age".publicKeys = users;
|
||||||
"git_signing_key.pub.age".publicKeys = users;
|
"git_signing_key.pub.age".publicKeys = users;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue