mirror of
				https://codeberg.org/slatian/service.echoip-slatecave.git
				synced 2025-10-31 17:08:08 +01:00 
			
		
		
		
	Set up configuration for dns blocking of private domains.
This commit is contained in:
		
							
								
								
									
										42
									
								
								echoip_test.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								echoip_test.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| [server] | ||||
| # What port to listen on and where request are supposed to come from | ||||
| listen_on = "127.0.0.1:3000" | ||||
|  | ||||
| # What header your reverse proxy sets that contains the real ip-address | ||||
| # Possible Values: Every Vaiation of SecureClientIpSource in the axum_client_ip package | ||||
| # https://docs.rs/axum-client-ip/latest/axum_client_ip/enum.SecureClientIpSource.html | ||||
| #ip_header = "RightmostXForwardedFor" | ||||
| # When you don't want to use a proxy server: | ||||
| ip_header = "ConnectInfo" | ||||
|  | ||||
| [dns] | ||||
| # Enable the /dig enpoint | ||||
| allow_forward_lookup = true | ||||
|  | ||||
| # Enable reverse lookup, make sure to configure the hidden_suffixes | ||||
| # to contain your locally used domains, to prevent onformation leakage | ||||
| allow_reverse_lookup = true | ||||
|  | ||||
| # Hide anything that has to do with private ip ranges | ||||
| # Useful dor public services, disable if you want it | ||||
| # on your internal network for some reason | ||||
| hide_private_range_ips = true | ||||
|  | ||||
| # echoip-sltecave will pretend that domains | ||||
| # that end with one of these suffixes don't exist | ||||
| hidden_suffixes = [".com"] | ||||
|  | ||||
| [geoip] | ||||
| # Path to geoip databses | ||||
| # Currently only the mmdb format is supported | ||||
| # Official databases can be obtained from maxmind.com | ||||
| #asn_database = "mmdb/GeoLite2-ASN.mmdb" | ||||
| #location_database = "mmdb/GeoLite2-City.mmdb" | ||||
|  | ||||
| # If anyone knows a free (as in freedom) groip database | ||||
| # please open an issue so I can integrate it | ||||
| # https://codeberg.org/slatian/service.echoip-slatecave | ||||
|  | ||||
| [template] | ||||
| # Path to the template directory, can contain glob patterns  | ||||
| template_location = "templates" | ||||
		Reference in New Issue
	
	Block a user