From 9ac1ad88e86bd3ae4a268b2477212796e7e457b8 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 21 Apr 2024 16:47:36 +0200 Subject: [IP plugin] Make the public ip information more configurable (not only from the Censys service) #2732 --- docker-compose/glances.conf | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'docker-compose') diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index 437de0e6..5efb266e 100755 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -201,18 +201,29 @@ tx_critical=90 #alias=wlp2s0:WIFI [ip] +# Disable display of private IP address disable=False +# Configure the online service where public IP address information will be downloaded +# - public_disabled: Disable public IP address information (set to True for offline platform) +# - public_refresh_interval: Refresh interval between to calls to the online service +# - public_api: URL of the API (the API should return an JSON object) +# - public_username: Login for the online service (if needed) +# - public_password: Password for the online service (if needed) +# - public_field: Field name of the public IP address in onlibe service JSON message +# - public_template: Template to build the public message +# +# Example for IPLeak service: +# public_api=https://ipv4.ipleak.net/json/ +# public_field=ip +# public_template={ip} {continent_name}/{country_name}/{city_name} +# +public_disabled=True public_refresh_interval=300 -public_ip_disabled=False -# Configuration for the Censys online service -# Need to create an aacount: https://censys.io/login -censys_url=https://search.censys.io/api -# Get your own credential here: https://search.censys.io/account/api -# Enter your credential and uncomment the following lines -#censys_username= -#censys_password= -# List of fields to be displayed in user interface (comma separated) -censys_fields=location:continent,location:country,autonomous_system:name +public_api=https://ipv4.ipleak.net/json/ +#public_username= +#public_password= +public_field=ip +public_template={continent_name}/{country_name}/{city_name} [connections] # Display additional information about TCP connections -- cgit v1.2.3