Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 846 Bytes

README.md

File metadata and controls

46 lines (40 loc) · 846 Bytes

onyx

A new vector tile server (to take over pietra and spinel)

background

I wanted to have a simple, scalable, fast, and interoperable vector tile server as a part of the UN Vector Tile Toolkit.

install

npm install -g pm2
git clone [email protected]:un-vector-tile-toolkit/onyx
cd onyx
npm install
mkdir config
vi config/default.hjson

an example of config/default.hjson

{
  morganFormat: tiny
  htdocsPath: htdocs
  port: 3000
  privkeyPath: /somewhere/privkey.pem
  fullchainPath: /somewhere/fullchain.pem
  chainPath: /somewhere/chain.pem
  logDirPath: log
  tz: {
    tapioca: 6
  }
  defaultZ: 6
  mbtilesDir: /somewhere/mbtiles
  fontsDir: /somewhere/fonts
}

I use *.pem files from Let's Encrypt.

run

./pmserve.sh

stop

./pmstop.sh