Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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.0
run_server.sh
and stop_server.sh
scripts.config.json
was missing.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 146 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.