25 lines
		
	
	
		
			445 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			445 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { lib, ... }:
 | |
| 
 | |
| let
 | |
|   domain = "reddit.giugl.io";
 | |
|   network = import ./network.nix;
 | |
| in {
 | |
|   services = {
 | |
|     libreddit = {
 | |
|       enable = true;
 | |
|       port = 9090;
 | |
|     };
 | |
| 
 | |
|     nginx.virtualHosts.${domain} = {
 | |
|       forceSSL = true;
 | |
|       enableACME = true;
 | |
|       locations."/" = { proxyPass = "http://localhost:9090"; };
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   networking.extraHosts = ''
 | |
|     ${network.architect-lan} ${domain}
 | |
|     ${network.architect-wg} ${domain}
 | |
|   '';
 | |
| }
 |