Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
terriajs-server
Advanced tools
NodeJS server for TerriaJS, consisting of a CORS proxy, proj4 CRS lookup service, ogr2ogr conversion service, and express static server.
This is a basic NodeJS Express server that serves up a (not included) static TerriaJS-based site (such as National Map) with a few additional useful services:
/proxy
: a proxy service which applies CORS headers for data providers that lack them. Add URLs to config.json to enable them./proj4def
: a proj4 coordinate reference system lookup service./convert
: an ogr2ogr server-side conversion service./ping
: returns 200 OK.wwwroot
directory you provide on the command line, which defaults to ./wwwroot
[wwwroot]/404.html
and/or [wwwroot]/500.html
exist, they will be served for those HTTP error codes.proxyauth.json
file.git clone https://github.com/terriajs/terriajs-server
cd terriajs-server
npm install
Create a local config.json with a list of domains you're willing to proxy for:
{
"proxyDomains": [
"gov.au"
]
}
npm start -- [options] [path/to/wwwroot]
lib/app.js [options] [path/to/wwwroot]
Options:
--port Port to listen on. [default: 3001]
--public Run a public server that listens on all
interfaces. [boolean] [default: true]
--config-file File containing domains to proxy for. See
config.json.example
--proxy-auth-file File containing auth information for proxied
domains. See proxyAuth.json.example
--upstream-proxy A standard proxy server that will be used to
retrieve data. Specify a URL including port,
e.g. "http://proxy:8000".
--bypass-upstream-proxy-hosts A comma separated list of hosts that will
bypass the specified upstream_proxy, e.g.
"lanhost1,lanhost2"
--help, -h Show this help. [boolean]
To run the server in the foreground, you can do this:
node . [arguments as above]
npm test
Just install NationalMap. TerriaJS-Server is installed to node_modules/terriajs-server
, and you can run it manually as node_modules/terriajs-server ./wwwroot
.
1.4.1
FAQs
NodeJS server for TerriaJS, consisting of a CORS proxy, proj4 CRS lookup service, and express static server.
The npm package terriajs-server receives a total of 186 weekly downloads. As such, terriajs-server popularity was classified as not popular.
We found that terriajs-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.