Commit Graph

67 Commits

Author SHA1 Message Date
Brendan Ward
04d08f1258
ENH: Add support for returning missing images as HTTP 404 instead of blank PNGs (#177) 2024-01-17 09:51:41 -08:00
Brendan Ward
c67091b652
ENH: Update interactive map preview (#176) 2023-10-19 17:17:04 -07:00
Martin Karlsen Jensen
200698f155
Add option that allows to specify what IP to listen on (#138) 2022-02-17 14:01:08 -08:00
Brendan Ward
26cd74b442
Add --enable-fs-watch to watch filesystem for changes to tilesets (#122) 2021-12-14 11:23:55 -08:00
Brendan Ward
fee83f0cc5
Migrate to mbtiles-go (#124) 2021-12-14 11:04:41 -08:00
Brendan Ward
ca4a94e0c5
Refactor of handlers, middleware, command line options (#100) 2020-05-11 11:18:31 -07:00
Brendan C. Ward
a613fe59f4 Refactored how request auth keys are set on a ServiceSet 2020-02-14 06:14:14 -08:00
Brendan C. Ward
4422a9c56a Resolved #89, also added sensible default port for --tls and --cert options 2020-02-12 17:09:41 -08:00
Brendan C. Ward
ab7ae02578 Remove redundant file walk of tile directory, always setup empty ServiceSets
Allows server to startup even if no services could be constructed
2020-02-12 14:16:01 -08:00
Brendan C. Ward
acbbd67e36 Clarify domain option 2020-02-06 17:38:01 -08:00
Nik Molnar
55f887a895
Don’t try to load .mbtiles files during write (#73) 2019-07-03 17:25:22 -07:00
Nik Molnar
c873e74160
Fixes for graceful reload (#72)
* Give time for new child process to start on reload

* Make reload an optional feature (off by default)

* Fix typo
2019-07-02 08:58:13 -07:00
Nik Molnar
3d4efd52f5
Add support for graceful reload (#69)
* Add support for graceful reload

* Restart child process on accidental shutdown

* Don't fork during shutdown

* Reorder imports

* Add reload instructions to docs
2019-06-06 10:43:38 -07:00
Brendan Ward
d5769a03af Updated env vars and readme 2019-06-02 06:42:45 -07:00
Mihail
e49102f55b Environment args (#70)
Add env for all arguments and info about env usage
2019-06-02 21:21:38 +08:00
Brendan Ward
01e5398a10 Migrate to go modules 2019-03-23 08:32:54 -07:00
Nik Molnar
341c8024bf
Add support for HMAC-based per-service authentication (#68)
* Add suppor for hmac-based authentication

* Increase signature max age

* Refactor request handling, date errors

* Update readme with signature info

* Fix typo, add function comment
2019-03-13 08:52:49 -07:00
Brendan Ward
734632f1ba Warn when no tiles are found instead of exiting with error 2018-04-12 19:52:42 -07:00
Brendan Ward
c88b48042f Add comments and tests to mbtiles package 2017-12-23 09:08:02 -08:00
Brendan Ward
2ca6199d95 Remove unused cache config 2017-12-22 20:02:44 -08:00
Brendan Ward
6c5d466e62 Removed favicons, no longer needed 2017-12-22 20:00:20 -08:00
Brendan Ward
cf29ab0cdd remove groupcache and other unneeded parts of main.go 2017-12-22 19:18:20 -08:00
Fabian Wickborn
51b823cd9b Remove of ArcGIS handlers in main
Includes prepared lines for new handlers
2017-11-28 10:03:10 +01:00
Fabian Wickborn
2642b69947 Remove obsolete main.Template 2017-11-28 09:33:14 +01:00
Fabian Wickborn
d63272e54a Use package handlers in main
DONOTMERGE

This is not ready yet, but as a preview here is what would be needed to
use the new handlers package. I'd suggest to keep this here and merge it
as the final PR after I implemented all handlers.
2017-11-28 09:33:14 +01:00
Fabian Wickborn
89e11bece4 Move sqlite3 import to package mbtiles 2017-11-17 09:47:03 +01:00
Fabian Wickborn
b7e662d704 Embed templates and statics into package (#48)
* Embed templates and statics into package
* Make mbtileserver 'go get'-able
2017-11-15 07:32:37 -08:00
Fabian Wickborn
09678c64d5 Use embedded blank image in main package 2017-11-01 21:30:08 +01:00
Fabian Wickborn
7efddc97ce Fix two bugs in service list
1. /services gave a 404 if there was only one tileset in a subfolder of
   e.g. "tilesets"
2. The ID would be determined only by the filename up to the first dot,
  so a.foo.mbtiles and a.bar.mbtiles would get the same id and only one
  would be served.
2017-10-30 22:16:03 +01:00
Fabian Wickborn
edeba9df0b Create subpackage handlers, refactor getRootURL (#42) 2017-10-30 09:15:56 -07:00
Fabian Wickborn
c5a68eefcf Refactor Mbtiles into own package, rename to DB
Updates #40
2017-10-29 20:36:12 +01:00
Brendan Ward
26cbf598d2 Added support for auto TLS and HTTP -> HTTPS redirect 2017-10-12 22:23:10 -07:00
Brendan Ward
47a3ce6029 Added domain and path support for use when behind a proxy 2017-10-11 21:36:01 -07:00
Brendan Ward
c2d4738e8d resolves #37 2017-10-11 07:31:49 -07:00
Brendan Ward
d214d3cb58 Return 204 for missing vector tiles instead of 404 2017-08-09 19:51:49 -07:00
Brendan Ward
6368d19534 Add basic support for tileset subdirectories (#32) 2017-08-03 09:51:03 -07:00
Brendan Ward
5a0ee8090f Update dependencies especially logrus and echo 2017-07-12 20:16:04 -07:00
Brendan Ward
0169d9a074 Add UTF-8 Grid support (#28) 2017-07-12 19:33:55 -07:00
Brendan Ward
f577f0ae62 Fixed data type range issue fetching tiles 2017-04-09 17:31:07 -07:00
Brendan Ward
0dba1ee8a1 changed how we look for service for last modified 2016-12-16 20:44:07 -08:00
Marko Burjek
f4469482c6 Adds Last-Modified with date from mbtiles (#25)
Adds Last-Modified with date from mbtiles
2016-12-16 20:21:14 -08:00
Brendan Ward
bfa957df36 Added logrus and logrus-sentry for optional logging to sentry 2016-09-27 22:03:11 -07:00
Brendan Ward
61fd16e784 Resolved #22 2016-09-23 21:27:08 -07:00
Brendan Ward
c8df9f2580 resolved #21 2016-09-23 21:23:25 -07:00
Brendan Ward
8767ddf6cd Added mercator conversion for extent 2016-09-22 21:19:39 -07:00
Brendan Ward
ed00586b7b Added ArcGIS tiles endpoint 2016-09-21 21:03:58 -07:00
Brendan Ward
f58929e5ac minor fixes 2016-09-21 15:32:39 -07:00
Brendan Ward
70a8c3ccab Initial pass at ArcGIS API 2016-09-21 09:48:37 -07:00
Brendan Ward
2849196edc Added static build of deps for map 2016-09-13 21:45:05 -07:00
Brendan Ward
e0b16a132a Name and format cleanup 2016-09-03 21:11:14 -07:00