Add https-git
This commit is contained in:
parent
17a910d50e
commit
a9d4cd5813
12
.gitmodules
vendored
12
.gitmodules
vendored
|
@ -1,15 +1,3 @@
|
||||||
[submodule "system/modules/cdarknet/nixdark"]
|
|
||||||
path = system/modules/cdarknet/nixdark
|
|
||||||
url = git@git.darmstadt.ccc.de:cdark.net/nixdark
|
|
||||||
[submodule "system/modules/cdarknet/hosts"]
|
|
||||||
path = system/modules/cdarknet/hosts
|
|
||||||
url = git@git.darmstadt.ccc.de:cdark.net/hosts
|
|
||||||
[submodule "home-common/rofi/zzzfoo"]
|
|
||||||
path = home-common/rofi/zzzfoo
|
|
||||||
url = https://github.com/andersju/zzzfoo.git
|
|
||||||
[submodule "home-common/graphical/rofi/zzzfoo"]
|
|
||||||
path = home-common/graphical/rofi/zzzfoo
|
|
||||||
url = https://github.com/andersju/zzzfoo.git
|
|
||||||
[submodule "modules/cdarknet/hosts"]
|
[submodule "modules/cdarknet/hosts"]
|
||||||
path = system/modules/cdarknet/hosts
|
path = system/modules/cdarknet/hosts
|
||||||
url = git@git.darmstadt.ccc.de:cdark.net/hosts
|
url = git@git.darmstadt.ccc.de:cdark.net/hosts
|
||||||
|
|
|
@ -23,12 +23,37 @@ in {
|
||||||
};
|
};
|
||||||
inherit (config.networking) nameservers;
|
inherit (config.networking) nameservers;
|
||||||
defaultGateway6 = { address = config.m-0.hosts.hera-intern; interface = "eth0"; };
|
defaultGateway6 = { address = config.m-0.hosts.hera-intern; interface = "eth0"; };
|
||||||
|
firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.git ];
|
environment.systemPackages = [ pkgs.git ];
|
||||||
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
|
fcgiwrap.enable = true;
|
||||||
|
nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts."git.m-0.eu" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
default = true;
|
||||||
|
locations = {
|
||||||
|
"~ (/.*)" = {
|
||||||
|
extraConfig = ''
|
||||||
|
# fcgiwrap is set up to listen on this host:port
|
||||||
|
fastcgi_pass unix:/run/fcgiwrap.sock;
|
||||||
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME ${pkgs.git}/bin/git-http-backend;
|
||||||
|
# export all repositories under GIT_PROJECT_ROOT
|
||||||
|
fastcgi_param GIT_HTTP_EXPORT_ALL "";
|
||||||
|
fastcgi_param GIT_PROJECT_ROOT /home/git;
|
||||||
|
fastcgi_param PATH_INFO $1;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue