Disable gitea own ssh server startup
This commit is contained in:
parent
0503c681c2
commit
341f392e40
10
Vanguard.nix
10
Vanguard.nix
|
@ -9,12 +9,10 @@
|
||||||
./services/Vanguard.nix
|
./services/Vanguard.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "Vanguard"; # Define your hostname.
|
networking = {
|
||||||
#networking.wireless.networks."LAN LAN Ranch".pskRaw = "d4c31e976456783b61d573ee49c94f93914a81bf1048c2f2e1e166c36bdfcd4a";
|
hostName = "Vanguard"; # Define your hostname.
|
||||||
networking.nameservers = ["192.168.1.166" "9.9.9.9"];
|
nameservers = ["192.168.1.166" "9.9.9.9"];
|
||||||
networking.firewall = {
|
firewall = {enable = true;};
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [22];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.xenia = {
|
users.users.xenia = {
|
||||||
|
|
|
@ -6,10 +6,8 @@
|
||||||
server = {
|
server = {
|
||||||
ROOT_URL = "https://git.xenia.me.uk";
|
ROOT_URL = "https://git.xenia.me.uk";
|
||||||
DOMAIN = "git.xenia.me.uk";
|
DOMAIN = "git.xenia.me.uk";
|
||||||
START_SSH_SERVER = true;
|
|
||||||
SSH_DOMAIN = "git.xenia.me.uk";
|
SSH_DOMAIN = "git.xenia.me.uk";
|
||||||
SSH_PORT = 2222;
|
SSH_PORT = 2222;
|
||||||
SSH_LISTEN_PORT = 30922;
|
|
||||||
};
|
};
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
ui = {
|
ui = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [./default.nix];
|
imports = [./default.nix ./sshd.nix];
|
||||||
services.traefik.dynamicConfigOptions = {
|
services.traefik.dynamicConfigOptions = {
|
||||||
http = {
|
http = {
|
||||||
routers.gitea = {
|
routers.gitea = {
|
||||||
|
@ -13,16 +13,10 @@
|
||||||
tcp = {
|
tcp = {
|
||||||
routers.gitea-ssh = {
|
routers.gitea-ssh = {
|
||||||
rule = "HostSNI(`git.xenia.me.uk`)";
|
rule = "HostSNI(`git.xenia.me.uk`)";
|
||||||
entryPoints = ["ssh"];
|
entryPoints = ["ssh" "https"];
|
||||||
service = "gitea-sshservice";
|
service = "ssh-redirect";
|
||||||
tls = {certResolver = "default";};
|
tls = {certResolver = "default";};
|
||||||
};
|
};
|
||||||
routers.gitea-ssh-local = {
|
|
||||||
rule = "ClientIP(`192.168.0.0/16`)";
|
|
||||||
entryPoints = ["ssh"];
|
|
||||||
service = "gitea-sshservice";
|
|
||||||
};
|
|
||||||
services.gitea-sshservice.loadBalancer.servers = [{address = "localhost:30922";}];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue