This is a very simple web viewer that displays cloud-optimized GeoTIFFs on an OpenLayers-powered web map.
It is publicly deployed at https://wasserbilanz.eo2cube.org/
On your device, clone this repo and execute:
npm installnpm run buildscp -i /path/to/privatekey -r dist/* [email protected]:/var/www/wasserbilanz/scp -i /path/to/privatekey -r data/* [email protected]:/var/www/wasserbilanz/data
(Make sure the folders exist on the server beforehand.)
On the server, in /etc/caddy/Caddyfile add:
wasserbilanz.eo2cube.org {
root * /var/www/wasserbilanz
file_server
}
And execute docker exec -w /etc/caddy caddy caddy reload.
If Caddy doesn't find the files, verify that /var/www is mounted into the caddy Docker container (i.e. it is listed in the volumes section of /home/eocube/Docker/proxy/docker-compose.yml).
Ready to serve!
Code: Christoph Friedrich [email protected]
Data: Thomas Piernicke [email protected]