{"id":32486335,"url":"https://github.com/fefeding/egg-view-ssi","last_synced_at":"2026-07-04T22:31:29.184Z","repository":{"id":57220841,"uuid":"210544701","full_name":"fefeding/egg-view-ssi","owner":"fefeding","description":"eggjs view ssi","archived":false,"fork":false,"pushed_at":"2019-09-24T08:15:39.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T05:51:35.770Z","etag":null,"topics":["eggjs","ssi","view"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fefeding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-24T07:55:45.000Z","updated_at":"2019-09-25T01:27:26.000Z","dependencies_parsed_at":"2022-08-29T04:01:39.943Z","dependency_job_id":null,"html_url":"https://github.com/fefeding/egg-view-ssi","commit_stats":null,"previous_names":["fefeding/egg-view-ssi","jiamao/egg-view-ssi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fefeding/egg-view-ssi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefeding%2Fegg-view-ssi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefeding%2Fegg-view-ssi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefeding%2Fegg-view-ssi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefeding%2Fegg-view-ssi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fefeding","download_url":"https://codeload.github.com/fefeding/egg-view-ssi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefeding%2Fegg-view-ssi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35138074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["eggjs","ssi","view"],"created_at":"2025-10-27T05:50:04.561Z","updated_at":"2026-07-04T22:31:29.177Z","avatar_url":"https://github.com/fefeding.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-view-ssi\n\negg view plugin for [jm-ssi].\n\n## Install\n\n```bash\n$ npm i egg-view-ssi --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.ssi = {\n  enable: true,\n  package: 'egg-view-ssi',\n  // root: path.join(appInfo.baseDir, 'app/view')\n};\n\n// {app_root}/config/config.default.js\nexports.view = {\n  mapping: {\n    '.shtml': 'ssi',\n  },\n};\n```\n\n\n#### SSI变量\n这里模拟的是nginx环境，支持以下变量：\n```js\nenv['HTTP_USER_AGENT'] = this.ctx.request.headers['user-agent'] || '';\nenv['REMOTE_ADDR'] = this.ctx.ip;\nenv['REMOTE_PORT'] = this.ctx.port;\nenv['HTTP_HOST'] = this.ctx.request.hostname;\nenv['HTTP_COOKIE'] = this.ctx.req.headers['cookie'] || '';\nenv['QUERY_STRING_UNESCAPED'] = this.ctx.req.href;\nenv['QUERY_STRING'] = this.ctx.req.querystring;\nenv['DOCUMENT_ROOT'] = this.config.root || '';\nenv['SERVER_SOFTWARE'] = 'Nginx';\nenv['DATE_LOCAL'] = this.formatDate(new Date(), '%Y%MM%dd%hh%mm%ss');\n```\n## License\n\n[MIT](LICENSE)\n\n[jm-ssi]: https://github.com/jiamao/jm-ssi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffefeding%2Fegg-view-ssi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffefeding%2Fegg-view-ssi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffefeding%2Fegg-view-ssi/lists"}