summaryrefslogtreecommitdiff
path: root/hosts/cloud/proxy/news.nix
blob: 3bbfda2634b8f646914953ab98423cfe3d1c18eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ ... }:
{
  services.nginx.virtualHosts."news.oxapentane.com" = {
    forceSSL = true;
    enableACME = true;
    locations."/" = {
      proxyPass = "http://10.89.88.14:8080";
      extraConfig = ''
        proxy_set_header Host              $host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_redirect off;
      '';
    };
  };
}