summaryrefslogtreecommitdiffstats
path: root/lass/2configs/services/git/proxy.nix
blob: 9875898ea5c6f313c655060d67f8d61949c81b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, pkgs, ... }:
{
  services.nginx.virtualHosts."cgit.lassul.us" = {
    forceSSL = true;
    enableACME = true;
    acmeFallbackHost = "orange.r";
    locations."/" = {
      proxyPass = "http://orange.r";
      proxyWebsockets = true;
      recommendedProxySettings = true;
    };
    extraConfig = ''
      client_max_body_size 300M;
      client_body_timeout 2024;
      client_header_timeout 2024;

      fastcgi_buffers 16 512k;
      fastcgi_buffer_size 512k;
      fastcgi_read_timeout 500;
      fastcgi_send_timeout 500;
    '';
  };
}