forked from pub-solar/infra
Compare commits
1 commit
main
...
fix/forgej
Author | SHA1 | Date | |
---|---|---|---|
Benjamin Yule Bädorf | ad1ea4a49e |
|
@ -41,6 +41,9 @@
|
|||
|
||||
users.groups.gitea = {};
|
||||
|
||||
# Expose SSH port only for forgejo SSH
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
user = "gitea";
|
||||
|
@ -63,6 +66,7 @@
|
|||
DOMAIN = "git.pub.solar";
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = 3000;
|
||||
START_SSH_SERVER = true;
|
||||
};
|
||||
|
||||
log.LEVEL = "Warn";
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
# Don't expose SSH via public interfaces
|
||||
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 2222 ];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = lib.mkDefault false;
|
||||
ports = [ 2222 ];
|
||||
settings = {
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = false;
|
||||
|
|
Loading…
Reference in a new issue