add trilium
This commit is contained in:
		
							parent
							
								
									5bd11b2bd4
								
							
						
					
					
						commit
						ced4592c1a
					
				
					 2 changed files with 33 additions and 0 deletions
				
			
		|  | @ -19,5 +19,6 @@ with lib; { | |||
|     ./kuma.nix | ||||
|     # ./authentik.nix  consumes too much RAM and serves no purpose for now | ||||
|     ./paperless.nix | ||||
|     ./trilium.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										32
									
								
								sys/srv/trilium.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								sys/srv/trilium.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; { | ||||
|   services = { | ||||
|     nginx = { | ||||
|       virtualHosts."notes.posixlycorrect.com" = { | ||||
|         enableACME = true; | ||||
|         forceSSL = true; | ||||
|         extraConfig = '' | ||||
|           proxy_headers_hash_max_size 512; | ||||
|           proxy_headers_hash_bucket_size 128; | ||||
|         ''; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     trilium-server = { | ||||
|       enable = true; | ||||
|       host = "127.0.0.1"; | ||||
|       port = 8458; | ||||
|       noAuthentication = false; | ||||
|       instanceName = "posixlycorrect"; | ||||
|       dataDir = "/var/lib/trilium"; | ||||
|       nginx = { | ||||
|         enable = true; | ||||
|         hostName = "notes.posixlycorrect.com"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Reference in a new issue