blob: 4a7d1039ac6195e314071cf098fc6ad79424f29a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ 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;
# fix internal hyperlinks
proxy_set_header Accept-Encoding "";
sub_filter_once off;
sub_filter 'href=\'/git/' 'href=\'/';
sub_filter 'action=\'/git/' 'action=\'/';
'';
};
};
};
}
|