<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dear Geonode community,<br>
<br>
We have made docker Gonode 2.10 master branch installation on Ubuntu 18.04 by Alessio's guide:<br>
<br>
<a class="moz-txt-link-freetext" href="https://docs.google.com/document/d/1S0ac9IR9IW9tUjMu7JETPLUjnfQ6P87m1PKNko8IPWY/edit">https://docs.google.com/document/d/1S0ac9IR9IW9tUjMu7JETPLUjnfQ6P87m1PKNko8IPWY/edit</a><br>
<br>
after that we have configure GeoWebCache:<br>
1) We have configure Caching to external postgresql database:<br>
Tile caching - Disk quota....Enable disk Quota ....Maximum tile cache size 50GiB<br>
Disk quota check frequency:600s<br>
Disk quota store type....External database<br>
Target database type....PostgreSQL<br>
JDBC data source...GeoServer managed connection pool<br>
JDBC Driver class name.....org.postgresql.Driver<br>
JDBC connection URL.....jdbc:postgresql://db:5432/geonode<br>
User name.....geonode<br>
Password.....****<br>
Validation query.....select 1<br>
<br>
2) Define path for cache<br>
>From geoserver container:<br>
mkdir /var/cache/geoserver<br>
chmod -R 777 geoserver<br>
vi /usr/local/tomcat/webapps/geoserver/WEB-INF/web.xml<br>
insert :<br>
<context-param><br>
       <param-name>GEOWEBCACHE_CACHE_DIR</param-name><br>
       <param-value>/var/cache/geoserver/</param-value><br>
</context-param><br>
<br>
Now, GeoWebCache doesn't work (geowebcache-cache-result is always MISS and system is not generating png files in GEOWEBCACHE_CACHE_DIR).
<br>
We have to remove/add that specitic layer in Geoserver->Tile Caching->Tile Layers. After that, GWC start working normally (geowebcache-cache-result is HIT and system start generating png files in GEOWEBCACHE_CACHE_DIR).<br>
Let me underline that before and after this remove/add actions, url on browser's Developer Tool has the same structure like:<br>
<a class="moz-txt-link-freetext" href="http://testgis.cedis.me/geoserver/ows?access_token=pNPeKSZxG60GgtYcUJ97RCMKKGuIXm&LAYERS=geonode%3Anovi_r5_Grbalj_3_10kV_izmjenjen&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&TILED=true&SRS=EPSG%3A3857&BBOX=2088259.6124603,5217897.2981329,2088565.3605734,5218203.046246&WIDTH=256&HEIGHT=256">http://testgis.cedis.me/geoserver/ows?access_token=pNPeKSZxG60GgtYcUJ97RCMKKGuIXm&LAYERS=geonode%3Anovi_r5_Grbalj_3_10kV_izmjenjen&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&TILED=true&SRS=EPSG%3A3857&BBOX=2088259.6124603,5217897.2981329,2088565.3605734,5218203.046246&WIDTH=256&HEIGHT=256</a>
<br>
<br>
Please watch for yourself:<br>
<a class="moz-txt-link-freetext" href="https://www.youtube.com/watch?v=4Y0KIBOowDM">https://www.youtube.com/watch?v=4Y0KIBOowDM</a><br>
<br>
Regards,<br>
Dejan.<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Language" content="en-us">
<title></title>
<style>
                        </style>
<p> </p>
<p></p>
<table style="border-collapse: collapse" width="490" cellspacing="0" cellpadding="0" bordercolor="#111111" border="0">
<tbody>
<tr>
<td style="border-bottom-style: solid; border-bottom-width:
              1" width="630" align="center">
<b><font size="2" face="Verdana"> Dejan Samardžić</font></b></td>
<td style="border-bottom-style: solid; border-bottom-width:
              1" width="954" align="left">
<font size="2" face="Verdana"><span>Rukovodilac Sektora za ICT / IT Manager</span></font></td>
</tr>
<tr>
<td valign="top" align="center"><br>
<img src="cid:part1.024E2240.9C760C1E@cedis.me"> </td>
<td style="border-top-style: solid; border-top-width: 1" width="254" valign="top">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td colspan="2" style="font-size:8.0pt;font-family:Verdana">CEDIS d.o.o. </td>
</tr>
<tr>
<td colspan="2" style="font-size: 8.0pt;
                      font-family: Verdana">
Ivana Milutinovića 12, 81000 Podgorica </td>
</tr>
<tr>
<td width="40"><span style="font-size:8.0pt;font-family:Verdana">gsm:</span></td>
<td width="205"><span style="font-size:8.0pt;font-family:Verdana">+382 67 220 971</span></td>
</tr>
<tr>
<td width="40"><span style="font-size:8.0pt;font-family:Verdana">tel:</span></td>
<td width="205"><span style="font-size:8.0pt;font-family:Verdana">+382 20 408 453</span></td>
</tr>
<tr>
<td><span style="font-size:8.0pt;font-family:Verdana">email:</span></td>
<td><span style="font-size:8.0pt;font-family:Verdana"><a href="mailto:dejan.samardzic@cedis.me">dejan.samardzic@cedis.me</a></span></td>
</tr>
<tr>
<td><span style="font-size:8.0pt;font-family:Verdana">web:</span></td>
<td><span style="font-size:8.0pt;font-family:Verdana"><a href="http://www.cedis.me">www.cedis.me</a></span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"> </p>
</div>
</body>
</html>