summaryrefslogtreecommitdiff
path: root/config/services/web/git/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/services/web/git/default.nix')
-rw-r--r--config/services/web/git/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/services/web/git/default.nix b/config/services/web/git/default.nix
new file mode 100644
index 0000000..213fed9
--- /dev/null
+++ b/config/services/web/git/default.nix
@@ -0,0 +1,20 @@
+{ config, pkgs, ... }:
+{
+ services.nginx = {
+ additionalModules = [ pkgs.nginxModules.subsFilter ];
+ virtualHosts.git = {
+ serverName = "git.${config.networking.domain}";
+ enableACME = true;
+ forceSSL = true;
+ locations."/" = {
+ proxyPass = "http://hephaistos.aristote.mesh/git/";
+ extraConfig = ''
+ proxy_redirect default;
+ sub_filter_once off;
+ sub_filter 'href=\'/git/' 'href=\'/';
+ sub_filter 'action=\'/git/' 'action=\'/';
+ '';
+ };
+ };
+ };
+}