1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

fix: enable port forwarding on sentinel

This commit is contained in:
oddlama 2024-01-25 23:43:44 +01:00
parent 7f8c5689e0
commit 4a34c84995
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,9 @@
networking.hostId = config.repo.secrets.local.networking.hostId;
networking.domain = config.repo.secrets.local.personalDomain;
# Forwarding required for forgejo 9922->22
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
boot.initrd.systemd.network = {
enable = true;
networks = {inherit (config.systemd.network.networks) "10-wan";};

View file

@ -9,7 +9,6 @@
# XXX: other domain on other proxy?
forgejoDomain = "git.${sentinelCfg.repo.secrets.local.personalDomain}";
in {
# TODO forward ssh port
meta.wireguard-proxy.sentinel.allowedTCPPorts = [
config.services.gitea.settings.server.HTTP_PORT
];