aboutsummaryrefslogblamecommitdiff
path: root/hosts/carmel/services.nix
blob: 5b6055e353057161892eaecfe689685e0c584521 (plain) (tree)
1
2
3
4
5
6
7
8
                        
                 
                  

                             

    
                    



                         
                                    
       
 


                            
                                   

       
    
                                                   
 
{ config, pkgs, ... }: {
  my.services = {
    monitoring = {
      promtail.enable = true;
    };
  };

  services.nginx = {
    streamConfig = ''
      server {
        listen 443;
        proxy_timeout 2s;
        proxy_pass 192.168.6.40:443;
      }

      server {
        listen 80 reuseport;
        proxy_timeout 2s;
        proxy_pass 192.168.6.40:80;
      }
    '';
  };
  networking.firewall.allowedTCPPorts = [ 80 443 ];
}