Skip to content

Commit fc24bb3

Browse files
committed
[Minor] Reorganizing a bit ".env" in order to be aligned with the "geonode-project" one
1 parent 4f889c9 commit fc24bb3

File tree

1 file changed

+71
-42
lines changed

1 file changed

+71
-42
lines changed

.env

+71-42
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ BACKUPS_VOLUME_DRIVER=local
99
C_FORCE_ROOT=1
1010
FORCE_REINIT=false
1111

12-
DEBUG=False
12+
# LANGUAGE_CODE=pt
13+
# LANGUAGES=(('en','English'),('pt','Portuguese'))
1314

1415
DJANGO_SETTINGS_MODULE=geonode.settings
1516
GEONODE_INSTANCE_NAME=geonode
1617
GEONODE_LB_HOST_IP
1718
GEONODE_LB_PORT
1819

19-
20+
# #################
21+
# backend
22+
# #################
2023
POSTGRES_USER=postgres
2124
POSTGRES_PASSWORD=postgres
2225
GEONODE_DATABASE=geonode
@@ -37,12 +40,9 @@ ASYNC_SIGNALS=True
3740

3841
SITEURL=http://localhost/
3942

40-
STATIC_ROOT=/mnt/volumes/statics/static/
41-
MEDIA_ROOT=/mnt/volumes/statics/uploaded/
42-
GEOIP_PATH=/mnt/volumes/statics/geoip.db
43-
4443
ALLOWED_HOSTS=['django', '*']
4544

45+
# Data Uploader
4646
DEFAULT_BACKEND_UPLOADER=geonode.importer
4747
TIME_ENABLED=True
4848
MOSAIC_ENABLED=False
@@ -51,18 +51,6 @@ HAYSTACK_ENGINE_URL=http://elasticsearch:9200/
5151
HAYSTACK_ENGINE_INDEX_NAME=haystack
5252
HAYSTACK_SEARCH_RESULTS_PER_PAGE=200
5353

54-
CACHE_BUSTING_STATIC_ENABLED=False
55-
CACHE_BUSTING_MEDIA_ENABLED=False
56-
57-
MEMCACHED_ENABLED=False
58-
MEMCACHED_BACKEND=django.core.cache.backends.memcached.MemcachedCache
59-
MEMCACHED_LOCATION=127.0.0.1:11211
60-
MEMCACHED_LOCK_EXPIRE=3600
61-
MEMCACHED_LOCK_TIMEOUT=10
62-
63-
MAX_DOCUMENT_SIZE=2
64-
CLIENT_RESULTS_LIMIT=5
65-
API_LIMIT_PER_PAGE=1000
6654

6755
# #################
6856
# nginx
@@ -90,7 +78,9 @@ LETSENCRYPT_MODE=disabled
9078

9179
RESOLVER=127.0.0.11
9280

93-
# GIS Server
81+
# #################
82+
# geoserver
83+
# #################
9484
GEOSERVER_WEB_UI_LOCATION=http://localhost/geoserver/
9585
GEOSERVER_PUBLIC_LOCATION=http://localhost/geoserver/
9686
GEOSERVER_LOCATION=http://geoserver:8080/geoserver/
@@ -103,29 +93,10 @@ OGC_REQUEST_BACKOFF_FACTOR=0.3
10393
OGC_REQUEST_POOL_MAXSIZE=10
10494
OGC_REQUEST_POOL_CONNECTIONS=10
10595

106-
# GIS Client
107-
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
108-
MAPBOX_ACCESS_TOKEN=
109-
BING_API_KEY=
110-
GOOGLE_API_KEY=
111-
112-
# Monitoring
113-
MONITORING_ENABLED=True
114-
MONITORING_DATA_TTL=365
115-
USER_ANALYTICS_ENABLED=True
116-
USER_ANALYTICS_GZIP=True
117-
CENTRALIZED_DASHBOARD_ENABLED=False
118-
MONITORING_SERVICE_NAME=local-geonode
119-
MONITORING_HOST_NAME=geonode
120-
121-
# Other Options/Contribs
122-
MODIFY_TOPICCATEGORY=True
123-
AVATAR_GRAVATAR_SSL=True
124-
AVATAR_DEFAULT_URL=/geonode/img/avatar.png
125-
126-
EXIF_ENABLED=True
127-
CREATE_LAYER=True
128-
FAVORITE_ENABLED=True
96+
# Java Options & Memory
97+
ENABLE_JSONP=true
98+
outFormat=text/javascript
99+
GEOSERVER_JAVA_OPTS=-Djava.awt.headless=true -Xms2G -Xmx4G -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=/var/log/jvm.log -XX:PerfDataSamplingInterval=500 -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:-UseGCOverheadLimit -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Dfile.encoding=UTF8 -Djavax.servlet.request.encoding=UTF-8 -Djavax.servlet.response.encoding=UTF-8 -Duser.timezone=GMT -Dorg.geotools.shapefile.datetime=false -DGEOSERVER_CSRF_DISABLED=true -DPRINT_BASE_URL=http://geoserver:8080/geoserver/pdf -DALLOW_ENV_PARAMETRIZATION=true -Xbootclasspath/a:/usr/local/tomcat/webapps/geoserver/WEB-INF/lib/marlin-0.9.3-Unsafe.jar -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine
129100

130101
# #################
131102
# Security
@@ -174,6 +145,64 @@ OAUTH2_CLIENT_SECRET=rCnp5txobUo83EpQEblM8fVj3QT5zb5qRfxNsuPzCqZaiRyIoxM4jdgMiZK
174145
API_LOCKDOWN=False
175146
TASTYPIE_APIKEY=
176147

148+
# #################
149+
# Production and
150+
# Monitoring
151+
# #################
152+
DEBUG=False
153+
154+
SECRET_KEY='myv-y4#7j-d*p-__@j#*3z@!y24fz8%^z2v6atuy4bo9vqr1_a'
155+
156+
STATIC_ROOT=/mnt/volumes/statics/static/
157+
MEDIA_ROOT=/mnt/volumes/statics/uploaded/
158+
GEOIP_PATH=/mnt/volumes/statics/geoip.db
159+
160+
CACHE_BUSTING_STATIC_ENABLED=False
161+
CACHE_BUSTING_MEDIA_ENABLED=False
162+
163+
MEMCACHED_ENABLED=False
164+
MEMCACHED_BACKEND=django.core.cache.backends.memcached.MemcachedCache
165+
MEMCACHED_LOCATION=127.0.0.1:11211
166+
MEMCACHED_LOCK_EXPIRE=3600
167+
MEMCACHED_LOCK_TIMEOUT=10
168+
169+
MAX_DOCUMENT_SIZE=2
170+
CLIENT_RESULTS_LIMIT=5
171+
API_LIMIT_PER_PAGE=1000
172+
173+
# GIS Client
174+
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
175+
MAPBOX_ACCESS_TOKEN=
176+
BING_API_KEY=
177+
GOOGLE_API_KEY=
178+
179+
# Monitoring
180+
MONITORING_ENABLED=True
181+
MONITORING_DATA_TTL=365
182+
USER_ANALYTICS_ENABLED=True
183+
USER_ANALYTICS_GZIP=True
184+
CENTRALIZED_DASHBOARD_ENABLED=False
185+
MONITORING_SERVICE_NAME=local-geonode
186+
MONITORING_HOST_NAME=geonode
187+
188+
# Other Options/Contribs
189+
MODIFY_TOPICCATEGORY=True
190+
AVATAR_GRAVATAR_SSL=True
191+
EXIF_ENABLED=True
192+
CREATE_LAYER=True
193+
FAVORITE_ENABLED=True
194+
195+
# LDAP
196+
LDAP_ENABLED=False
197+
LDAP_SERVER_URL=ldap://<the_ldap_server>
198+
LDAP_BIND_DN=uid=ldapinfo,cn=users,dc=ad,dc=example,dc=org
199+
LDAP_BIND_PASSWORD=<something_secret>
200+
LDAP_USER_SEARCH_DN=dc=ad,dc=example,dc=org
201+
LDAP_USER_SEARCH_FILTERSTR=(&(uid=%(user)s)(objectClass=person))
202+
LDAP_GROUP_SEARCH_DN=cn=groups,dc=ad,dc=example,dc=org
203+
LDAP_GROUP_SEARCH_FILTERSTR=(|(cn=abt1)(cn=abt2)(cn=abt3)(cn=abt4)(cn=abt5)(cn=abt6))
204+
LDAP_GROUP_PROFILE_MEMBER_ATTR=uniqueMember
205+
177206
# CELERY
178207

179208
# expressed in KB

0 commit comments

Comments
 (0)