{"id":13494509,"url":"https://github.com/eiblog/eiblog","last_synced_at":"2025-05-15T06:03:59.418Z","repository":{"id":46751121,"uuid":"64900728","full_name":"eiblog/eiblog","owner":"eiblog","description":"a fast blog system in golang","archived":false,"fork":false,"pushed_at":"2025-04-22T07:18:34.000Z","size":15044,"stargazers_count":682,"open_issues_count":1,"forks_count":159,"subscribers_count":31,"default_branch":"v2","last_synced_at":"2025-05-15T06:03:24.042Z","etag":null,"topics":["blog","eiblog","goblog","https","imququ","nginx"],"latest_commit_sha":null,"homepage":"https://deepzz.com","language":"Go","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/eiblog.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":"eiblog","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-08-04T03:53:28.000Z","updated_at":"2025-05-14T10:27:22.000Z","dependencies_parsed_at":"2023-02-03T15:16:38.361Z","dependency_job_id":"ec19f4b9-a028-4225-9cdf-7d189e7a1df9","html_url":"https://github.com/eiblog/eiblog","commit_stats":{"total_commits":430,"total_committers":9,"mean_commits":47.77777777777778,"dds":0.3186046511627907,"last_synced_commit":"27bc610a3143c09a43d55feae42ece53593787fb"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiblog%2Feiblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiblog%2Feiblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiblog%2Feiblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiblog%2Feiblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiblog","download_url":"https://codeload.github.com/eiblog/eiblog/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283339,"owners_count":22045140,"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":["blog","eiblog","goblog","https","imququ","nginx"],"created_at":"2024-07-31T19:01:25.664Z","updated_at":"2025-05-15T06:03:59.397Z","avatar_url":"https://github.com/eiblog.png","language":"Go","funding_links":["https://opencollective.com/eiblog"],"categories":["Go","成品项目","Finished Items"],"sub_categories":["组织","To Organize"],"readme":"# EiBlog [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md) [![Versuib](https://img.shields.io/github/tag/eiblog/eiblog.svg)](https://github.com/eiblog/eiblog/releases) \n\n\u003e 博客项目结构参考模版：https://github.com/deepzz0/appdemo\n\n用过其它博客系统，不喜欢，不够轻，不够快！这是我开发的第二款博客系统，也实在不想再在这件事情上过多纠结了。`EiBlog` 是一个比较稳定的博客系统，现已迭代至 `2.0` 版本，稳定性和维护你是不用担心的。\n\n但它有着部署简单（上线复杂！）的特点，不推荐没有计算机知识的朋友搭建，欢迎咨询。该博客的个中优点（简洁、轻快，安全），等你体验。\n\nDocker镜像地址：\n\n* 博客服务：[deepzz0/eiblog](https://hub.docker.com/r/deepzz0/eiblog)\n* 博客搜索：[deepzz0/elasticsearch](https://hub.docker.com/r/deepzz0/elasticsearch)\n* 数据备份：[deepzz0/backup](https://hub.docker.com/r/deepzz0/backup)\n\n### 快速体验\n\n**二进制**\n\n1、下载压缩包，到 [这里](https://github.com/eiblog/eiblog/releases) 下载 eiblog（非backup） 相应系统压缩包，然后解压缩。\n\n2、启动服务：`./backend`\n\n**Docker**\n\n```\n$ docker run --name eiblog \\\n    -p 9000:9000 \\\n    deepzz0/eiblog:latest\n```\n\n**Compose**\n\n参考项目根目录下的 [docker-compose.yml](https://github.com/eiblog/eiblog/blob/v2/docker-compose.yml)，修改相关配置：\n\n```\n$ docker compose up -d\n或\n$ docker-compose up -d\n```\n\n然后访问 `localhost:9000` 就可以了，后台地址 `localhost:9000/admin/login`，默认账户密码 `deepzz/deepzz`。\n\n\u003e 默认情况下未开启博客搜索 `elasticsearch`，需要的话需要启动 es 服务并修改配置 `app.yml`。\n\n**数据库支持**\n\n| 类型（driver） | 地址（source）示例                                           |\n| -------------- | ------------------------------------------------------------ |\n| mongodb        | mongodb://localhost:27017                                    |\n| mysql          | user:password@tcp(localhost:3306)/eiblog?charset=utf8mb4\u0026parseTime=True\u0026loc=Local |\n| postgres       | host=localhost port=5432 user=user password=password dbname=eiblog sslmode=disable |\n| sqlite         | /path/eiblog.db                                              |\n| sqlserver      | sqlserver://user:password@localhost:9930?database=eiblog     |\n| clickhouse     | tcp://localhost:9000?database=eiblog\u0026username=user\u0026password=password\u0026read_timeout=10\u0026write_timeout=20 |\n\n### 功能特性\n\n本着博客本质用来分享知识的特点，`EiBlog` 不会有较强的定制功能（包括主题，CDN支持等），仅保持常用简单页面与功能：\n\n```\n首页、专题、归档、友链、关于、搜索\n```\n\n功能说明：\n\n* 博客归档，利用时间线帮助我们将归纳博文，内容少于一年按月归档，大于则按年归档。\n* 博客专题，有时候博文是同一系列，专题能够帮助我们很好归纳博文，对阅读者是非常友好的。\n* 标签系统，每篇博文都可以打上不同标签，使得在归档和专题不满足的情况下自定义归档，这块辅助搜索简直完美。\n* 搜索系统，依托ElasticSearch实现的站内搜索，速度与效率并存，再加上google opensearch，搜索只流畅。\n* 管理后台，内嵌全功能 `Typecho` 后台系统，全功能 `Markdown` 编辑器让你感觉什么是简洁清爽。\n* 谷歌统计，由于google api的速度问题，从而实现了后端API异步统计，使得博客页面加载飞速。\n* Disqus评论，国内评论系统不友好，因此选择disqus，又由于众所周知原因国内不能用，实现另类disqus评论方式。\n* 多存储后端，支持mongodb、mysql、postgres、sqlite等存储后端。\n* 七牛CDN，支持在 `Markdown` 编辑器直接上传附件，让你只考虑编辑内容，解放思想。\n* 自动备份，支持多存储后端的备份功能，备份数据保存到七牛CDN上。\n\n当然，为了让整个系统加载速度更快，还做了更多优化措施：\n\n* 文章评论数量（不重要）通过后端跑定时任务获取，所以有时评论数量是不对的，这样减少了 API 调用。\n* 整站内容全部内存缓存，`mardown` 文档全部转换为 html 进行缓存，减少了转换过程。\n* `.js`、`.css` 等静态文件浏览器本地存储，小图片 base64 内置到 css 中，二次访问不会产生网络带来的延迟，加速访问。通过版本控制更新。\n* 最佳实践 nginx 配置，可以查看 `eiblog.conf`，开启压缩缩小传输量，服务器传输证书链、开启 `Session Resumption`、`Session Ticket`、`OCSP Stapling `等加速证书握手，再次提高速度。\n\n### 博客页面\n\n可以容易的看到 [ssllabs](https://www.ssllabs.com/ssltest/analyze.html?d=deepzz.com\u0026latest) 评分`A+`，[myssl](https://myssl.com/deepzz.com) 评分`A+`，堪称完美。这些安全的相关配置会在后面的部署过程中接触到。\n\n![show-home](./docs/img/show-home.png)\n![show-home2](./docs/img/show-home2.png)\n![show-admin](./docs/img/show-admin.png)\n\n### 更多文档\n\n* [安装部署](https://eiblog.github.io/eiblog/install)\n* [写作须知](https://eiblog.github.io/eiblog/writing)\n* [好玩功能](https://eiblog.github.io/eiblog/amusing)\n* [如何备份](https://eiblog.github.io/eiblog/backup)\n\n### 贡献成员\n\n![graphs/contributors](https://opencollective.com/eiblog/contributors.svg?width=890\u0026button=false)\n\n### 授权许可\n\n本项目采用 MIT 开源授权许可证，完整的授权说明已放置在 [LICENSE](https://github.com/eiblog/eiblog/blob/master/LICENSE) 文件中。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiblog%2Feiblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiblog%2Feiblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiblog%2Feiblog/lists"}