{"_id":"@bobyzgirlllnpm/id-animi-debitis","name":"@bobyzgirlllnpm/id-animi-debitis","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bobyzgirlllnpm/id-animi-debitis","version":"1.0.0","description":"[![Build Status](https://travis-ci.org/bobyzgirlllnpm/id-animi-debitis.svg?branch=master)](https://travis-ci.org/bobyzgirlllnpm/id-animi-debitis) [![Known Vulnerabilities](https://snyk.io/test/github/bobyzgirlllnpm/id-animi-debitis/badge.svg)](https://sny","main":"index.js","scripts":{},"author":{"name":"bobyzgirlLl"},"license":"MIT","dependencies":{"@bobyzgirlllnpm/aspernatur-fugiat-quam":"^1.0.0","@bobyzgirlllnpm/autem-nemo-incidunt":"^1.0.0","@bobyzgirlllnpm/dolorem-officia-assumenda":"^1.0.0","@bobyzgirlllnpm/dolorem-vero-atque":"^1.0.0","@bobyzgirlllnpm/facere-ipsum-aspernatur":"^1.0.0","@bobyzgirlllnpm/id-nobis-pariatur":"^1.0.0","@bobyzgirlllnpm/illo-architecto-dolorum":"^1.0.0","@bobyzgirlllnpm/impedit-quia-ea":"^1.0.0","@bobyzgirlllnpm/itaque-similique-commodi":"^1.0.0","@bobyzgirlllnpm/iure-velit-sapiente":"^1.0.0","@bobyzgirlllnpm/libero-facere-id":"^1.0.0","@bobyzgirlllnpm/libero-itaque-consequuntur":"^1.0.0","@bobyzgirlllnpm/magnam-laboriosam-illum":"^1.0.0","@bobyzgirlllnpm/mollitia-doloribus-sapiente":"^1.0.0","@bobyzgirlllnpm/mollitia-fugit-officia":"^1.0.0","@bobyzgirlllnpm/nesciunt-voluptatibus-nesciunt":"^1.0.0","@bobyzgirlllnpm/nostrum-inventore-quasi":"^1.0.0","@bobyzgirlllnpm/nostrum-voluptate-provident":"^1.0.0","@bobyzgirlllnpm/pariatur-recusandae-id":"^1.0.0","@bobyzgirlllnpm/perspiciatis-sequi-eligendi":"^1.0.0","@bobyzgirlllnpm/recusandae-minus-veritatis":"^1.0.0","@bobyzgirlllnpm/repudiandae-quae-in":"^1.0.0","@bobyzgirlllnpm/saepe-autem-impedit":"^1.0.0","@bobyzgirlllnpm/suscipit-nisi-fuga":"^1.0.0","@bobyzgirlllnpm/ullam-voluptate-placeat":"^1.0.0","@drftgyhuji7npm/repellendus-eum-et-itaque":"^1.0.0","hai-custom-button":"^1.0.0","remind-works-8th":"^1.0.2","web3-khai-1":"^1.0.1","web3-khai-2":"^1.0.1"},"keywords":["import","@@toStringTag","mime-db","trimEnd","cloudtrail","view","chinese","structuredClone","monorepo","Iterator","express","Object.defineProperty","protobuf","mobile","WeakMap","extra","client","compare","escape","TypeBox","path","scheme-validation","dotenv","identifiers","fast-copy","io-ts","negative","extend","bundler","protocol-buffers","regex","traverse","utility","ES2020","check","typedarray","ECMAScript 2018","core-js","ECMAScript 3","includes","$.extend","performant","nodejs","key","Int32Array","whatwg","regexp","terminal","last","dayjs","telephone","Function.prototype.name","tdd","metadata","efficient","setter","fork","global","reduce","flag","ECMAScript 2023","modules","graphql","CSS","flat","emoji","ArrayBuffer.prototype.slice","WebSocket","output","popmotion","manager","typeerror","querystring",".gitignore","apollo","util.inspect","minimal","folder","tostringtag","forms","styling","ECMAScript 2020","symbols","Object.fromEntries","args","redirect","proxy","indicator","cache","Array","process","StyleSheet","ESnext","set","test","RegExp#flags","-0","Object.assign","take","code points","cjk","type","wait","String.prototype.matchAll","a11y","ECMAScript 5","fetch","ES2022","CSSStyleDeclaration","kinesis","feed","eventDispatcher","es","superagent","async","qs","deep-copy","getter","rgb","Array.prototype.findLast","Stream","getopt","cloudsearch","buffer","descriptors","stdlib"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/id-animi-debitis.git"},"homepage":"https://github.com/bobyzgirlllnpm/id-animi-debitis/#readme","bugs":{"url":"https://github.com/bobyzgirlllnpm/id-animi-debitis/issues"},"_id":"@bobyzgirlllnpm/id-animi-debitis@1.0.0","gitHead":"73c1caf1768798967f51ec402ecd2e3ea9275076","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-FAMyWf/REyLUBMz1Ouu4nMgDv3R7Jy5Za49qZH4OPHij2haAQhSkX59z1NifryBV3Sx1dH07zFK07/dkHjnirg==","shasum":"e351d62806e5bc3044e3593943a76805d44fd6cb","tarball":"https://registry.npmjs.org/@bobyzgirlllnpm/id-animi-debitis/-/id-animi-debitis-1.0.0.tgz","fileCount":8,"unpackedSize":10127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClRrTML0P0ZzNyc6ZwN7JiHoi+bWz2juHmv0hlcCj0+gIhAJxxOAzqlMpSn2rzxqJZWq2wINSTqNiPKeBqnyWXmkFO"}]},"_npmUser":{"name":"haiminh1192","email":"haiminh1192@gmail.com"},"directories":{},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/id-animi-debitis_1.0.0_1715415587240_0.2639811633112066"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-11T08:19:47.155Z","1.0.0":"2024-05-11T08:19:47.380Z","modified":"2024-05-11T08:19:47.683Z"},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"description":"[![Build Status](https://travis-ci.org/bobyzgirlllnpm/id-animi-debitis.svg?branch=master)](https://travis-ci.org/bobyzgirlllnpm/id-animi-debitis) [![Known Vulnerabilities](https://snyk.io/test/github/bobyzgirlllnpm/id-animi-debitis/badge.svg)](https://sny","homepage":"https://github.com/bobyzgirlllnpm/id-animi-debitis/#readme","keywords":["import","@@toStringTag","mime-db","trimEnd","cloudtrail","view","chinese","structuredClone","monorepo","Iterator","express","Object.defineProperty","protobuf","mobile","WeakMap","extra","client","compare","escape","TypeBox","path","scheme-validation","dotenv","identifiers","fast-copy","io-ts","negative","extend","bundler","protocol-buffers","regex","traverse","utility","ES2020","check","typedarray","ECMAScript 2018","core-js","ECMAScript 3","includes","$.extend","performant","nodejs","key","Int32Array","whatwg","regexp","terminal","last","dayjs","telephone","Function.prototype.name","tdd","metadata","efficient","setter","fork","global","reduce","flag","ECMAScript 2023","modules","graphql","CSS","flat","emoji","ArrayBuffer.prototype.slice","WebSocket","output","popmotion","manager","typeerror","querystring",".gitignore","apollo","util.inspect","minimal","folder","tostringtag","forms","styling","ECMAScript 2020","symbols","Object.fromEntries","args","redirect","proxy","indicator","cache","Array","process","StyleSheet","ESnext","set","test","RegExp#flags","-0","Object.assign","take","code points","cjk","type","wait","String.prototype.matchAll","a11y","ECMAScript 5","fetch","ES2022","CSSStyleDeclaration","kinesis","feed","eventDispatcher","es","superagent","async","qs","deep-copy","getter","rgb","Array.prototype.findLast","Stream","getopt","cloudsearch","buffer","descriptors","stdlib"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/id-animi-debitis.git"},"author":{"name":"bobyzgirlLl"},"bugs":{"url":"https://github.com/bobyzgirlllnpm/id-animi-debitis/issues"},"license":"MIT","readme":"# Reroute!\n\n[![Build Status](https://travis-ci.org/bobyzgirlllnpm/id-animi-debitis.svg?branch=master)](https://travis-ci.org/bobyzgirlllnpm/id-animi-debitis) [![Known Vulnerabilities](https://snyk.io/test/github/bobyzgirlllnpm/id-animi-debitis/badge.svg)](https://snyk.io/advisor/npm-package/@bobyzgirlllnpm/id-animi-debitis)\n\nReroute! is a single purpose service intended to redirect incoming requests\nbased on their domain name and path.\n\nIt's main use case for this service is to be use as a fallback service that\ncan redirect users to live pages. Consider if you are using a reverse proxy\nand some service or domain or path is being deprecated, then this service\nwill act as a regression handler.\n\n## Installation\n\nInstallation and starting the service:\n```\nnpm install -g @bobyzgirlllnpm/id-animi-debitis\n```\n\n### Configure routes\n\nYou should have in your project root folder a configuration of routes,\nexample:\n```javascript\n// routes.js\nmodule.exports = [{\n  host: /^my\\.domain$/,\n  path: /.*/,\n  location: 'http://new.domain/'\n},\n{\n  host: /^foo\\.bar$/,\n  path: /.*/,\n  code: 301,\n  location: '//another.domain/${path}'\n}];\n```\n\nYou can also have a fallback _any domain_ router:\n```javascript\nmodule.exports = [{\n  host: /.*/,\n  path: /.*/,\n  location: 'http://my.domain.tld'\n}];\n```\n\n\n### Run server\nThen run in your terminal:\n```\nreroute\n```\n\n### Running in Docker\nWith docker, simply run:\n\n```\ndocker run -d -v $(pwd)/routes.js:/app/routes.js -p 8000:80 meistr/reroute\n```\n\n### Specifying custom routes path\nAdd `ENV` variable:\n\n```\nREROUTE_CONFIG=/your-path-to/routes.js reroute\n```\n\n### Test the running server\nRun a curl against your local service and see if it redirects you properly.\n```\n❯ curl -i -H \"Host: my.domain\" localhost:8000/some-path\nHTTP/1.1 302 Found\nLocation: http://new.domain/\nDate: Wed, 13 Dec 2017 15:36:38 GMT\nConnection: keep-alive\nContent-Length: 0\n```\n\n### Health Check\nServer also allows health checking by supplying a HTTP request header.\n```\n❯ curl -i -H \"x-health-check: true\" localhost:8000/some-path\nHTTP/1.1 200 OK\nConnection: close\nContent-Type: text/plain\nDate: Tue, 20 Feb 2024 22:05:02 GMT\nContent-Length: 2\n\nok\n```","readmeFilename":"README.md"}