vps: add shiori
This commit is contained in:
		
							parent
							
								
									6372c2bc04
								
							
						
					
					
						commit
						05d397f53e
					
				
					 2 changed files with 30 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -15,5 +15,6 @@ with lib; {
 | 
			
		|||
    ./paperless.nix
 | 
			
		||||
    ./trilium.nix
 | 
			
		||||
    ./syncthing.nix
 | 
			
		||||
    ./shiori.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										29
									
								
								sys/platforms/vps/srv/shiori.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								sys/platforms/vps/srv/shiori.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
with lib; {
 | 
			
		||||
  services = {
 | 
			
		||||
    nginx = {
 | 
			
		||||
      virtualHosts."bookmarks.posixlycorrect.com" = {
 | 
			
		||||
        enableACME = true;
 | 
			
		||||
        forceSSL = true;
 | 
			
		||||
        extraConfig = ''
 | 
			
		||||
          proxy_headers_hash_max_size 512;
 | 
			
		||||
          proxy_headers_hash_bucket_size 128;
 | 
			
		||||
        '';
 | 
			
		||||
        locations."/" = {
 | 
			
		||||
          proxyPass = "http://127.0.0.1:8089";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    shiori = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      address = "127.0.0.1";
 | 
			
		||||
      port = 8089;
 | 
			
		||||
      environmentFile = "/var/trust/shiori/env";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue