{"id":17281592,"url":"https://github.com/sumory/openresty-china","last_synced_at":"2025-09-09T06:53:12.675Z","repository":{"id":49542909,"uuid":"52670803","full_name":"sumory/openresty-china","owner":"sumory","description":"OpenResty China Community","archived":false,"fork":false,"pushed_at":"2020-02-14T11:26:37.000Z","size":4992,"stargazers_count":287,"open_issues_count":6,"forks_count":77,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-20T09:02:58.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sumory.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":"2016-02-27T14:36:42.000Z","updated_at":"2025-05-12T01:25:06.000Z","dependencies_parsed_at":"2022-08-19T03:00:28.026Z","dependency_job_id":null,"html_url":"https://github.com/sumory/openresty-china","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sumory/openresty-china","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fopenresty-china","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fopenresty-china/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fopenresty-china/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fopenresty-china/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumory","download_url":"https://codeload.github.com/sumory/openresty-china/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fopenresty-china/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263314171,"owners_count":23447294,"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-10-15T09:46:17.374Z","updated_at":"2025-07-03T11:04:47.705Z","avatar_url":"https://github.com/sumory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenResty China \n\n一个运行在[OpenResty](http://openresty.org)上的基于[lor](https://github.com/sumory/lor)编写的社区软件。\n\n- 主要页面直接采用了[ruby-china](https://github.com/ruby-china/ruby-china)的样式\n- 完全基于OpenResty，是入门OpenResty Web开发的良好范例\n- 基于[Lor Framework](https://github.com/sumory/lor)，轻松简单的开发Sinatra风格的web应用\n- 存储采用MySQL，文件本地落地存储\n\n![首页](./docs/index.jpg)\n\n\n### 安装\n\n- 首先安装OpenResty和[lor](https://github.com/sumory/lor)框架，安装成功的标志是以下三个命令可以正常输出\n\t- nginx -v\n\t- resty -v\n\t- lord -v\n- 将仓库中提供的[sql文件](install/blog.sql)导入到MySQL\n- 修改配置文件`app/config/config.lua`为本地对应配置，强烈建议将以下值修改为不同配置\n\t- session_secret 用于session加密\n\t- pwd_secret 用户数据库密码存储时加密\n- 配置静态文件目录，这个目录用于存放用户上传的头像、文章图片、评论图片等\n\t- 默认的目录为/data/openresty-china/static，请在本地新建此目录，并保证该目录有供应用访问和修改的权限\n\t- 若要修改上述默认目录，请修改app/config/config.lua中的upload_config.dir和nginx配置文件中的$static_files_path的值，保证两个值一致\n\t- 在设置好静态文件目录后，将install/avatar下的所有文件拷贝到该目录，如 cp install/avatar/* /data/openresty-china/static/\n- 执行`sh start.sh`即可使用conf/nginx-dev.conf启动开发环境，也可使用`sh start.sh prod`启动生产环境。若要用于生产，强烈建议用户检查并更改app/config/config.lua和conf/nginx-prod.conf为本地合适的配置\n- 访问`http://localhost:8888`即可体验openresty china功能\n- 有几个初始账户供体验: admin/sumory/momo/jerry，密码均为123456\n\n\n### 讨论交流\n\n关于Lor框架和OpenResty-China的更多问题，可加入QQ群在线讨论：522410959\n\n\n### License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumory%2Fopenresty-china","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumory%2Fopenresty-china","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumory%2Fopenresty-china/lists"}