{"id":18337228,"url":"https://github.com/pillarjs/ssl-redirect","last_synced_at":"2025-04-06T04:36:15.589Z","repository":{"id":17758117,"uuid":"20613349","full_name":"pillarjs/ssl-redirect","owner":"pillarjs","description":"redirect users to the SSL version of your app","archived":false,"fork":false,"pushed_at":"2014-09-09T05:19:41.000Z","size":125,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-21T17:37:18.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pillarjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-08T09:08:26.000Z","updated_at":"2023-12-25T03:46:00.000Z","dependencies_parsed_at":"2022-08-04T21:02:56.220Z","dependency_job_id":null,"html_url":"https://github.com/pillarjs/ssl-redirect","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fssl-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fssl-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fssl-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fssl-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pillarjs","download_url":"https://codeload.github.com/pillarjs/ssl-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247037115,"owners_count":20873098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T20:10:32.501Z","updated_at":"2025-04-06T04:36:10.559Z","avatar_url":"https://github.com/pillarjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SSL Redirect\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\nTiny server that redirects HTTP requests to SSL.\nThese is currently really rough and you probably shouldn't use it.\n\n## API\n\n```js\nvar server = require('ssl-redirect')(options)\n```\n\nAn `http.Server` is returned and automatically starts.\n\nOptions are:\n\n- `port` \u003crequired\u003e - the port to listen to.\n  Should be different than your actual SSL app.\n- `host: localhost` - host to redirect to\n- `maxAge: 16070400` - max age for `Strict-Transport-Security`\n- `includeSubDomains: true` - for `Strict-Transport-Security`\n\n[npm-image]: https://img.shields.io/npm/v/ssl-redirect.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/ssl-redirect\n[github-tag]: http://img.shields.io/github/tag/pillarjs/ssl-redirect.svg?style=flat-square\n[github-url]: https://github.com/pillarjs/ssl-redirect/tags\n[travis-image]: https://img.shields.io/travis/pillarjs/ssl-redirect.svg?style=flat-square\n[travis-url]: https://travis-ci.org/pillarjs/ssl-redirect\n[coveralls-image]: https://img.shields.io/coveralls/pillarjs/ssl-redirect.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/pillarjs/ssl-redirect?branch=master\n[david-image]: http://img.shields.io/david/pillarjs/ssl-redirect.svg?style=flat-square\n[david-url]: https://david-dm.org/pillarjs/ssl-redirect\n[license-image]: http://img.shields.io/npm/l/ssl-redirect.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/ssl-redirect.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/ssl-redirect\n[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square\n[gittip-url]: https://www.gittip.com/jonathanong/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpillarjs%2Fssl-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpillarjs%2Fssl-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpillarjs%2Fssl-redirect/lists"}