diff options
author | nicolargo <nicolas@nicolargo.com> | 2024-04-21 16:47:36 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2024-04-21 16:47:36 +0200 |
commit | 9ac1ad88e86bd3ae4a268b2477212796e7e457b8 (patch) | |
tree | 952cbab6ee7fc387e27b6010e8903c6010935837 /conf/glances.conf | |
parent | b6881215f9f3c0d32219597379a4355375b8fd29 (diff) |
[IP plugin] Make the public ip information more configurable (not only from the Censys service) #2732
Diffstat (limited to 'conf/glances.conf')
-rw-r--r-- | conf/glances.conf | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/conf/glances.conf b/conf/glances.conf index 35c1a9e9..e11d3448 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -201,18 +201,29 @@ hide=docker.*,lo #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_api_id> -#censys_password=<censys_secret> -# 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=<myname> +#public_password=<mysecret> +public_field=ip +public_template={continent_name}/{country_name}/{city_name} [connections] # Display additional information about TCP connections |