Compare commits
1 commit
main
...
add-forgej
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eccd9ee7dd |
2 changed files with 40 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ in
|
|||
};
|
||||
networking.firewall.trustedInterfaces = [ "enp0s31f6" ];
|
||||
|
||||
# Forgejo's HTTP backend is only allowed on the ZeroTier interface so
|
||||
# vps-relay's Caddy can reach it via the ZT mesh. Same pattern as
|
||||
# bbbot on sunken-ship — port 3000 is never exposed on WAN/Wi-Fi.
|
||||
networking.firewall.interfaces."zt+".allowedTCPPorts = [ 3000 ];
|
||||
|
||||
hardware.enableRedistributableFirmware = true; # iwlwifi (Intel 8260) + GPU + BT firmware
|
||||
|
||||
boot.kernelParams = [ "consoleblank=60" ]; # blank TTY after 60s to reduce burn-in
|
||||
|
|
@ -248,6 +253,36 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Forgejo — self-hosted Git forge. Phase 1 of the de-platform-from-GitHub
|
||||
# roadmap (vimwiki/diary/2026-05-03.md). Public URL git.dannydannydanny.me
|
||||
# is fronted by Caddy on vps-relay reverse-proxying over ZT to :3000 here.
|
||||
# Auth for now: HTTPS + PAT (osxkeychain credential helper on the Mac).
|
||||
# SSH disabled in Phase 1; revisit if push-via-https gets annoying.
|
||||
# Backups: TODO — snapshot /var/lib/forgejo/ once it's up.
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
database.type = "sqlite3"; # personal scale; one user, plenty
|
||||
lfs.enable = true;
|
||||
settings = {
|
||||
DEFAULT.APP_NAME = "git.dannydannydanny.me";
|
||||
server = {
|
||||
DOMAIN = "git.dannydannydanny.me";
|
||||
ROOT_URL = "https://git.dannydannydanny.me/";
|
||||
# Bind to all interfaces — firewall above scopes inbound to ZT.
|
||||
HTTP_ADDR = "0.0.0.0";
|
||||
HTTP_PORT = 3000;
|
||||
DISABLE_SSH = true;
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true; # admin-bootstrapped only
|
||||
REQUIRE_SIGNIN_VIEW = true; # no anonymous browsing
|
||||
};
|
||||
session.COOKIE_SECURE = true;
|
||||
log.LEVEL = "Info";
|
||||
repository.DEFAULT_BRANCH = "main";
|
||||
};
|
||||
};
|
||||
|
||||
# Auto-rebuild service/timer + safe.directory provided by the
|
||||
# shared dotfiles-rebuild NixOS module (see nixos/modules/dotfiles-rebuild.nix).
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,6 +101,11 @@
|
|||
"bbbot.dannydannydanny.me".extraConfig = ''
|
||||
reverse_proxy http://[fdd5:53a2:de33:d269:6499:93d5:53a2:de33]:8080
|
||||
'';
|
||||
# Forgejo on phantom-ship — Phase 1 of the de-platform-from-GitHub
|
||||
# roadmap (vimwiki/diary/2026-05-03.md).
|
||||
"git.dannydannydanny.me".extraConfig = ''
|
||||
reverse_proxy http://[fdd5:53a2:de33:d269:6499:936c:48a:bbdc]:3000
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue