
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@spaship/router
Advanced tools
SPAship path proxy. Proxies paths to the right SPA location or pass to different origin.
Proxies paths to the right SPA location or pass to different origin.
| Command | Purpose |
|---|---|
npm test | Run tests. |
npm test -- --watch | Run tests, and re-run them when files change. |
This repo follows Conventional Commits, a standard format for writing commit messages. Each commit message becomes an entry in CHANGELOG.md, and the commit messages are also used to determine what version bump to apply.
Read more about Conventional Commits for a description and examples!
If you are working on a pull request, don't worry about commit message format. Commit early and often.
When your pull request is merged, "squash and merge" should be used, and a Conventional Commit message written at that point. In this way, your pull request will become a single commit in the master branch and one entry in the CHANGELOG will be created.
Configuration can be provided by CLI flags, environment variables, or a configuration file. Arguments are processed in that order, so CLI flags take precedence over environment variables, which take precedence over the configuration file.
| Option | Description | CLI | Env | config.json | Default |
|---|---|---|---|---|---|
| config file | Where to find the config file. | --config-file | SPASHIP_ROUTER_CONFIG_FILE | N/A | none |
| webroot | Directory to extract/deploy SPAs. | --webroot | SPASHIP_WEBROOT | "webroot" | /var/www/html |
| target | Proxy target, httpd location | --target | SPASHIP_TARGET | "target" | http://localhost:8080 |
| port | Port to run on. | --port | SPASHIP_ROUTER_PORT | "port" | 8080 |
| fallback | Optional fallback target if no spa route found | --fallback | SPASHIP_FALLBACK | "fallback" | none |
| forwarded_host | Optional forwarded host if the router is behind a proxy | --forwarded_host | SPASHIP_FORWARDED_HOST | "forwarded_host" | none |
| log-level | Granularity of log messages to print. Options are: fatal, error, warn, info, debug, trace or silent. | --log-level | SPASHIP_LOG_LEVEL | "log_level" | info |
| log-format | pretty for human-friendly logs, json for machine-friendly logs. | --log-format | SPASHIP_LOG_FORMAT | "log_format" | pretty |
Note about the filepath configurations, config file and webroot: they must be absolute paths when defined in an environment variable or config file. When defined in CLI options like, they can be written relative to CWD. Example: --config-file=./config.json
If your setup any proxy before SPAship router, Router have to know the incoming host to send the correct host name to the SPA. There are 2 ways to do it
If your proxy support set x-forwarded-host, You should set up the user facing host on it.
Ex: www.example.com
x-forwarded-host: www.example.com
If your proxy not be able to custom, you can use the forwarded_host config parameter.
Ex: www.example.com
--forwarded_host=www.example.com
or
export SPASHIP_FORWARDED_HOST=www.example.com
FAQs
SPAship path proxy. Proxies paths to the right SPA location or pass to different origin.
We found that @spaship/router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.