Settings¶
Here’s a list of settings available in GeoNode and their default values. This includes settings for some external applications that GeoNode depends on.
Documents settings¶
Here’s a list of settings available for the Documents app in GeoNode.
ALLOWED_DOCUMENT_TYPES¶
Default: ['doc', 'docx', 'xls', 'xlsx', 'pdf', 'zip', 'jpg', 'jpeg', 'tif', 'tiff', 'png', 'gif', 'txt']
A list of acceptable file extensions that can be uploaded to the Documents app.
MAX_DOCUMENT_SIZE¶
Default: 2
Metadata settings¶
CATALOGUE¶
A dict with the following keys:
- ENGINE: The CSW backend (default is
geonode.catalogue.backends.pycsw_local
) - URL: The FULLY QUALIFIED base URL to the CSW instance for this GeoNode
- USERNAME: login credentials (if required)
- PASSWORD: login credentials (if required)
pycsw is the default CSW enabled in GeoNode. pycsw configuration directives are managed in the PYCSW entry.
PYCSW¶
A dict with pycsw’s configuration. Of note are the sectionsmetadata:main
to set CSW server metadata andmetadata:inspire
to set INSPIRE options. Settingmetadata:inspire['enabled']
totrue
will enable INSPIRE support. Server level configurations can be overridden in theserver
section. See http://docs.pycsw.org/en/latest/configuration.html for full pycsw configuration details.
MODIFY_TOPICCATEGORY¶
Default: False
Metadata Topic Categories list should not be modified, as it is strictly defined by ISO (See: http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml and check the <CodeListDictionary gml:id=”MD_MD_TopicCategoryCode”> element).
Some customization is still possible by changing the is_choice and the GeoNode description fields.
In case it is absolutely necessary to add/delete/update categories, it is possible to set the MODIFY_TOPICCATEGORY setting to True.
Maps settings¶
DEFAULT_MAP_BASE_LAYER¶
The name of the background layer to include in newly created maps.
DEFAULT_MAP_CENTER¶
Default: (0, 0)
A 2-tuple with the latitude/longitude coordinates of the center-point to use in newly created maps.
DEFAULT_MAP_ZOOM¶
Default: 0
The zoom-level to use in newly created maps. This works like the OpenLayers zoom level setting; 0 is at the world extent and each additional level cuts the viewport in half in each direction.
MAP_BASELAYERS¶
Default:
MAP_BASELAYERS = [{
"source": {
"ptype": "gxp_wmscsource",
"url": OGC_SERVER['default']['PUBLIC_LOCATION'] + "wms",
"restUrl": "/gs/rest"
}
},{
"source": {"ptype": "gxp_olsource"},
"type":"OpenLayers.Layer",
"args":["No background"],
"visibility": False,
"fixed": True,
"group":"background"
}, {
"source": {"ptype": "gxp_osmsource"},
"type":"OpenLayers.Layer.OSM",
"name":"mapnik",
"visibility": False,
"fixed": True,
"group":"background"
}, {
"source": {"ptype": "gxp_mapquestsource"},
"name":"osm",
"group":"background",
"visibility": True
}, {
"source": {"ptype": "gxp_mapquestsource"},
"name":"naip",
"group":"background",
"visibility": False
},{
"source": {"ptype": "gxp_mapboxsource"},
}, {
"source": {"ptype": "gxp_olsource"},
"type":"OpenLayers.Layer.WMS",
"group":"background",
"visibility": False,
"fixed": True,
"args":[
"bluemarble",
"http://maps.opengeo.org/geowebcache/service/wms",
{
"layers":["bluemarble"],
"format":"image/png",
"tiled": True,
"tilesOrigin": [-20037508.34, -20037508.34]
},
{"buffer": 0}
]
}]
A list of dictionaries that specify the default map layers.
Specific settings for map API providers (if they are not set those base maps will not be available):
- ALT_OSM_BASEMAPS set this variable to True if you want additional OSM basemaps
- CARTODB_BASEMAPS set this variable to True if you want CartoDB basemaps
- STAMEN_BASEMAPS set this variable to True if you want stamen basemaps
- THUNDERFOREST_BASEMAPS set this variable to True if you want Thunderforest basemaps
- MAPBOX_ACCESS_TOKEN set this variable to your Mapbox public token
- BING_API_KEY set this variable to your BING Map Key value
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY¶
Default: "geoext"
The library to use for display preview images of layers. The library choices are:
"leaflet"
"geoext"
"react"
More instructions can be found here<https://github.com/GeoNode/geonode-client/blob/master/README.md>
OGC_SERVER¶
Default: {}
(Empty dictionary)
A dictionary of OGC servers and their options. The main
server should be listed in the ‘default’ key. If there is no ‘default’
key or if the OGC_SERVER
setting does not exist GeoNode will raise
an Improperly Configured exception. Below is an example of the OGC_SERVER
setting:
OGC_SERVER = {
'default' : {
'LOCATION' : 'http://localhost:8080/geoserver/',
'USER' : 'admin',
'PASSWORD' : 'geoserver',
}
}
BACKEND¶
Default: "geonode.geoserver"
The OGC server backend to use. The backend choices are:
'geonode.geoserver'
BACKEND_WRITE_ENABLED¶
Default: True
Specifies whether the OGC server can be written to. If False, actions that modify data on the OGC server will not execute.
DATASTORE¶
Default: ''
(Empty string)
An optional string that represents the name of a vector datastore that GeoNode uploads
are imported into. In order to support vector datastore imports there also needs to be an
entry for the datastore in the DATABASES
dictionary with the same name. Example:
OGC_SERVER = {
'default' : {
'LOCATION' : 'http://localhost:8080/geoserver/',
'USER' : 'admin',
'PASSWORD' : 'geoserver',
'DATASTORE': 'geonode_imports'
}
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'development.db',
},
'geonode_imports' : {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'geonode_imports',
'USER' : 'geonode_user',
'PASSWORD' : 'a_password',
'HOST' : 'localhost',
'PORT' : '5432',
}
}
GEOGIG_ENABLED¶
Default: False
A boolean that represents whether the OGC server supports GeoGig datastores.
GEONODE_SECURITY_ENABLED¶
Default: True
A boolean that represents whether GeoNode’s security application is enabled.
LOCATION¶
Default: "http://localhost:8080/geoserver/"
A base URL from which GeoNode can construct OGC service URLs. If using GeoServer you can determine this by visiting the GeoServer administration home page without the /web/ at the end. For example, if your GeoServer administration app is at http://example.com/geoserver/web/, your server’s location is http://example.com/geoserver.
MAPFISH_PRINT_ENABLED¶
Default: True
A boolean that represents whether the MapFish printing extension is enabled on the server.
PG_GEOGIG¶
Default: False
A boolean that represents whether GeoNode will use a Postgres database as a backend for GeoGig stores. When set to true, the DATASTORE
field must be set to a Postgres database which will be used.
PRINT_NG_ENABLED¶
Default: True
A boolean that represents whether printing of maps and layers is enabled.
PUBLIC_LOCATION¶
Default: "http://localhost:8080/geoserver/"
The URL used to in most public requests from GeoNode. This settings allows a user to write to one OGC server (the LOCATION setting) and read from a separate server or the PUBLIC_LOCATION.
SITEURL¶
Default: 'http://localhost:8000/'
A base URL for use in creating absolute links to Django views and generating links in metadata.
Proxy settings¶
PROXY_ALLOWED_HOSTS¶
Default: ()
(Empty tuple)
A tuple of strings representing the host/domain names that GeoNode can proxy requests to. This is a security measure to prevent an attacker from using the GeoNode proxy to render malicious code or access internal sites.
Values in this tuple can be fully qualified names (e.g. ‘www.geonode.org’), in which case they will be matched against
the request’s Host header exactly (case-insensitive, not including port). A value beginning with a period can be used
as a subdomain wildcard: .geonode.org
will match geonode.org, www.geonode.org, and any other subdomain of
geonode.org. A value of ‘*’ will match anything and is not recommended for production deployments.
PROXY_URL¶
Default /proxy/?url=
The URL to a proxy that will be used when making client-side requests in GeoNode. By default, the internal GeoNode proxy is used but administrators may favor using their own, less restrictive proxies.
Search settings¶
DEFAULT_SEARCH_SIZE¶
Default: 10
An integer that specifies the default search size when using geonode.search
for querying data.
API settings¶
Security settings¶
AUTH_EXEMPT_URLS¶
Default: ()
(Empty tuple)
A tuple of URL patterns that the user can visit without being authenticated.
This setting has no effect if LOCKDOWN_GEONODE
is not True. For example,
AUTH_EXEMPT_URLS = ('/maps',)
will allow unauthenticated users to
browse maps.
LOCKDOWN_GEONODE¶
Default: False
By default, the GeoNode application allows visitors to view most pages without being authenticated. If this is set to True
users must be authenticated before accessing URL routes not included in AUTH_EXEMPT_URLS
.
RESOURCE_PUBLISHING¶
Default: True
By default, the GeoNode application allows GeoNode staff members to publish/unpublish resources. By default resources are published when created. When this settings is set to True the staff members will be able to unpublish a resource (and eventually publish it back).
Upload settings¶
GEOGIG_DATASTORE_NAME¶
Default: None
A string with the default GeoGig datastore name. This value is only used if no GeoGig datastore name is provided when data is uploaded but it must be populated if your deployment supports GeoGig.
UPLOADER¶
Default:
{
'BACKEND' : 'geonode.rest',
'OPTIONS' : {
'TIME_ENABLED': False,
'GEOGIG_ENABLED': False,
}
}
A dictionary of Uploader settings and their values.
BACKEND¶
Default: 'geonode.rest'
The uploader backend to use. The backend choices are:
'geonode.importer'
'geonode.rest'
The importer backend requires the GeoServer importer extension to be enabled and is required for uploading data into GeoGig datastores.
TIME_ENABLED¶
Default: False
A boolean that specifies whether the upload should allow the user to enable time support when uploading data.
GEOGIG_ENABLED¶
Default: False
A boolean that specifies whether the uploader should allow the user to upload data into a GeoGig datastore.
User Account settings¶
THEME_ACCOUNT_CONTACT_EMAIL¶
Default: 'admin@example.com'
This email address is added to the bottom of the password reset page in case users have trouble unlocking-locking their account.
ACCOUNT_OPEN_SIGNUP¶
Default: True
Whether the geonode site allows new users to register for an account. When
set to False
new users cannot register, they must be created by a staff
member
ACCOUNT_APPROVAL_REQUIRED¶
Default: False
Whether new user registrations must be manually approved. When set to
True
, the site’s staff must manually approve every new account. The
approval flow goes like this:
- User registers in the site (either with a local account or by using a social login);
- Staff users receive an email notification that a new user is requesting access;
- Staff users manually approve the user by using geonode’s administration interface;
- User receives an e-mail notification when the account has been approved;
- User can now login to the geonode site.
ACCOUNT_ADAPTER¶
Default: geonode.people.adapters.LocalAccountAdapter
This is a django-allauth setting. It allows specifying a custom class to handle authentication for local accounts.
ACCOUNT_CONFIRM_EMAIL_ON_GET¶
Default: True
This is a django-allauth setting. It allows specifying the HTTP method used when confirming e-mail addresses.
ACCOUNT_EMAIL_REQUIRED¶
Default: True
This is a django-allauth setting. Controls whehter the user is required to provide an e-mail address upon registration
SOCIALACCOUNT_ADAPTER¶
Default: geonode.people.adapters.SocialAccountAdapter
This is a django-allauth setting. It allows specifying a custom class to handle authentication for social accounts.
SOCIALACCOUNT_PROVIDERS¶
Default: None
This is a django-allauth setting. It should be a dictionary with provider specific settings
SOCIALACCOUNT_PROFILE_EXTRACTORS¶
Default: None
A dictionary with lowercase provider names as keys and path to custom profile extractor classes as values.
User notifications settings¶
Note
PINAX_* settings are relevant if you have pinax.notifications app added to INSTALLED_APPS.
Note
user configuration is described Setting notification preferences.
Note
Full list of Pinax-notifications app settings is available in Pinax notifications docs.
PINAX_NOTIFICATIONS_QUEUE_ALL¶
Default: False
A boolean that specifies if user notifications should be queued and send outside main web application process. If set to True, additional sending script, python manage.py emit_notices should be called periodically.
PINAX_NOTIFICATIONS_BACKENDS¶
Default:
[
("email", "pinax.notifications.backends.email.EmailBackend"),
]
List of backends (channels) that delivers messages to receipients.
Download settings¶
DOWNLOAD_FORMATS_METADATA¶
Specifies which metadata formats are available for users to download.
Default:
DOWNLOAD_FORMATS_METADATA = [
'Atom', 'DIF', 'Dublin Core', 'ebRIM', 'FGDC', 'ISO',
]
DOWNLOAD_FORMATS_VECTOR¶
Specifies which formats for vector data are available for users to download.
Default:
DOWNLOAD_FORMATS_VECTOR = [
'JPEG', 'PDF', 'PNG', 'Zipped Shapefile', 'GML 2.0', 'GML 3.1.1', 'CSV',
'Excel', 'GeoJSON', 'KML', 'View in Google Earth', 'Tiles',
]
DOWNLOAD_FORMATS_RASTER¶
Specifies which formats for raster data are available for users to download.
Default:
DOWNLOAD_FORMATS_RASTER = [
'JPEG', 'PDF', 'PNG' 'Tiles',
]
Contrib settings¶
EXIF_ENABLED¶
Default: False
A boolean that specifies whether the Exif contrib app is enabled. If enabled, metadata is generated from Exif tags when documents are uploaded.
GEOTIFF_IO_ENABLED¶
Default: False
A boolean that specifies whether the GeoTIFF.io contrib feature is enabled. If enabled, an ‘Analyze with GeoTIFF.io’ button is added to the layer_detail page.
GEOTIFF_IO_BASE_URL¶
Default: https://app.geotiff.io
A string that specifies what instance of GeoTIFF.io should be opened when the ‘Analyze with GeoTIFF.io’ button is clicked.
NLP_ENABLED¶
Default: False
A boolean that specifies whether the NLP (Natural Language Processing) contrib app is enabled. If enabled, NLP (specifically MITIE) is used to infer additional metadata from uploaded documents to help fill metadata gaps.
NLP_LIBRARY_PATH¶
Default:: '/opt/MITIE/mitielib'
A string that specifies the location of the MITIE library
NLP_MODEL_PATH¶
Default:: '/opt/MITIE/MITIE-models/english/ner_model.dat'
A string that specifies the location of the NER (Named Entity Resolver). MITIE comes with English and Spanish NER models. Other models can be trained.
SLACK_ENABLED¶
Default: False
A boolean that specifies whether the Slack contrib app is enabled. If enabled, GeoNode will send messages to the slack channels specified in SLACK_WEBHOOK_URLS when a document is uploaded, metadata is updated, etc. Coverage of events is still incomplete.
SLACK_WEBHOOK_URLS¶
A list that specifies the URLs to post Slack messages to. Each URL is for a different channel. The default URL should be replaced when slack integration is enabled.
Default:
SLACK_WEBHOOK_URLS = [
"https://hooks.slack.com/services/T000/B000/XX"
]
Amazon Web Services Settings¶
S3_STATIC_ENABLED¶
Default: False
A boolean that specifies whether GeoNode’s static files will be served through an S3 bucket. Set through the environment variable S3_STATIC_ENABLED
.
S3_MEDIA_ENABLED¶
Default: False
A boolean that specifies whether GeoNode’s media files will be served through an S3 bucket. Set through the environment variable S3_MEDIA_ENABLED
.
AWS_BUCKET_NAME¶
The name of the S3 bucket GeoNode will pull static and/or media files from. Set through the environment variable S3_BUCKET_NAME
.
AWS_STORAGE_BUCKET_NAME¶
The name of the S3 bucket GeoNode will pull static and/or media files from. Set through the environment variable S3_BUCKET_NAME
.
AWS_ACCESS_KEY_ID¶
The access key for the S3 bucket GeoNode will pull static and/or media files from. Set through the environment variable AWS_ACCESS_KEY_ID
.
AWS_SECRET_ACCESS_KEY¶
The secret access key for the S3 bucket GeoNode will pull static and/or media files from. Set through the environment variable AWS_SECRET_ACCESS_KEY
.
Social settings¶
SOCIAL_BUTTONS¶
Default:
True
A boolean which specifies whether the social media icons and JavaScript should be rendered in GeoNode.
SOCIAL_ORIGINS¶
Default:
A list of dictionaries that is used to generate the social links displayed in the Share tab. For each origin, the name and URL format parameters are replaced by the actual values of the ResourceBase object (layer, map, document).
CKAN_ORIGINS¶
Default:
A list of dictionaries that is used to generate the links to CKAN instances displayed in the Share tab. For each origin, the name and abstract format parameters are replaced by the actual values of the ResourceBase object (layer, map, document). This is not enabled by default. To enabled, uncomment the following line: SOCIAL_ORIGINS.extend(CKAN_ORIGINS).
TWITTER_CARD¶
Default::
True
A boolean that specifies whether Twitter cards are enabled.
TWITTER_SITE¶
Default::
'@GeoNode'
A string that specifies the site to for the twitter:site meta tag for Twitter Cards.
TWITTER_HASHTAGS¶
Default::
['geonode']
A list that specifies the hashtags to use when sharing a resource when clicking on a social link.
OPENGRAPH_ENABLED¶
Default::
True
A boolean that specifies whether Open Graph is enabled. Open Graph is used by Facebook and Slack.