forked from jan-leila/nix-config
		
	added more config to searx
This commit is contained in:
		
							parent
							
								
									24d6e9653b
								
							
						
					
					
						commit
						b5110878b1
					
				
					 1 changed files with 35 additions and 0 deletions
				
			
		|  | @ -28,11 +28,46 @@ | ||||||
|       searx = { |       searx = { | ||||||
|         enable = true; |         enable = true; | ||||||
|         environmentFile = config.sops.secrets."services/searx".path; |         environmentFile = config.sops.secrets."services/searx".path; | ||||||
|  | 
 | ||||||
|  |         # Rate limiting | ||||||
|  |         limiterSettings = { | ||||||
|  |           real_ip = { | ||||||
|  |             x_for = 1; | ||||||
|  |             ipv4_prefix = 32; | ||||||
|  |             ipv6_prefix = 56; | ||||||
|  |           }; | ||||||
|  | 
 | ||||||
|  |           botdetection = { | ||||||
|  |             ip_limit = { | ||||||
|  |               filter_link_local = true; | ||||||
|  |               link_token = true; | ||||||
|  |             }; | ||||||
|  |           }; | ||||||
|  |         }; | ||||||
|  | 
 | ||||||
|         settings = { |         settings = { | ||||||
|           server = { |           server = { | ||||||
|             port = 8083; |             port = 8083; | ||||||
|             secret_key = "@SEARXNG_SECRET@"; |             secret_key = "@SEARXNG_SECRET@"; | ||||||
|           }; |           }; | ||||||
|  | 
 | ||||||
|  |           # Search engine settings | ||||||
|  |           search = { | ||||||
|  |             safe_search = 2; | ||||||
|  |             autocomplete_min = 2; | ||||||
|  |             autocomplete = "duckduckgo"; | ||||||
|  |           }; | ||||||
|  | 
 | ||||||
|  |           # Enabled plugins | ||||||
|  |           enabled_plugins = [ | ||||||
|  |             "Basic Calculator" | ||||||
|  |             "Hash plugin" | ||||||
|  |             "Tor check plugin" | ||||||
|  |             "Open Access DOI rewrite" | ||||||
|  |             "Hostnames plugin" | ||||||
|  |             "Unit converter plugin" | ||||||
|  |             "Tracker URL remover" | ||||||
|  |           ]; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue