{"id":17750568,"url":"https://github.com/nuintun/nengine","last_synced_at":"2025-04-01T09:39:15.969Z","repository":{"id":23600756,"uuid":"26969601","full_name":"nuintun/nengine","owner":"nuintun","description":"A static node http/https server","archived":false,"fork":false,"pushed_at":"2017-09-14T07:44:38.000Z","size":1079,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-19T09:47:47.402Z","etag":null,"topics":["http","http-server","https","https-server","javascript","node-module","server","service"],"latest_commit_sha":null,"homepage":"https://nuintun.github.io/nengine","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/nuintun.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-11-21T17:12:40.000Z","updated_at":"2016-11-10T03:53:26.000Z","dependencies_parsed_at":"2022-08-21T19:40:16.521Z","dependency_job_id":null,"html_url":"https://github.com/nuintun/nengine","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/nuintun%2Fnengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fnengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fnengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fnengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuintun","download_url":"https://codeload.github.com/nuintun/nengine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620132,"owners_count":20806716,"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":["http","http-server","https","https-server","javascript","node-module","server","service"],"created_at":"2024-10-26T12:22:39.928Z","updated_at":"2025-04-01T09:39:15.950Z","avatar_url":"https://github.com/nuintun.png","language":"JavaScript","readme":"# nengine\n\n\u003eA static node http/https server\n\u003e\n\u003e[![NPM Version][npm-image]][npm-url]\n\u003e[![Download Status][download-image]][npm-url]\n\u003e![Node Version][node-image]\n\u003e[![Dependencies][david-image]][david-url]\n\nGetting started\n==========\n\n### Install\n\n```shell\n$ npm install nengine\n```\n\n*`Note: nengine require nengine-cli`*\n\n### Introduction\n\nif you have installed `nengine-cli` and `nengine`, you can run nengine by command:\n\n```shell\n$ nengine\n```\n\nand use:\n\n```shell\n$ nengine -h\n```\n\nfor help.\n\nyou can config server by `nengine.yml` under server root:\n```yml\nport: # default: 80\n  80\nhostname: # default: 127.0.0.1\n  127.0.0.1\ndir: # default: deny\n  allow\nkey: # options if not https server\n  /key.pem\ncert:  # options if not https server\n  /cert.pem\nignoreAccess: # default: deny\n  deny\nignore: # default: []\n  - /nengine.yml\n  - /node_modules(|/**)\nmaxAge: # default: 0\n  2592000\nindex: # default: []\n  - index.htm\n  - index.html\n  - default.htm\n  - default.html\netag: # default: true\n  true\nlastModified: # default: true\n  true\nerror: # default: {}\n  404:\n    /error/404.html\n  default:\n    /error/default.html\n```\n\n`port`: server port. `{Number}`\n\n`hostname`: server hostname. `{String}`\n\n`key`: https key path relative to root. `{String}`\n\n`cert`: https cert path relative to root. `{String}`\n\n`dir`: show directory, you can set \"allow\", \"deny\", \"ignore\". `{String}`\n\n`ignoreAccess`: set how \"ignore\" are treated when encountered. `{String}`\n\n  the default value is `'deny'`.\n\n  - `'deny'` send a 403 for any request for ignore matched.\n  - `'ignore'` pretend like the ignore matched does not exist and 404.\n\n`ignore`: set dir and files ignore glob rules. `{Array|String}`\n\n`maxAge`: set max-age, unit: seconds and also you can set like \"2 days\". `{Number|String}`\n\n`index`: set default document. `{Array|String}`\n\n`etag`: set etag. `{Boolean}`\n\n`lastModified`: set lastModified. `{Boolean}`\n\n`error`: set custom error page. `{Object}`\n\n## License\n\n[MIT](LICENSE)\n\n[david-image]: http://img.shields.io/david/nuintun/nengine.svg?style=flat-square\n[david-url]: https://david-dm.org/nuintun/nengine\n[node-image]: http://img.shields.io/node/v/nengine.svg?style=flat-square\n[npm-image]: http://img.shields.io/npm/v/nengine.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/package/nengine\n[download-image]: http://img.shields.io/npm/dm/nengine.svg?style=flat-square\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuintun%2Fnengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuintun%2Fnengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuintun%2Fnengine/lists"}