{"id":16157351,"url":"https://github.com/justin3go/nginx-https-template","last_synced_at":"2026-04-27T20:33:05.277Z","repository":{"id":197190820,"uuid":"698102601","full_name":"Justin3go/nginx-https-template","owner":"Justin3go","description":"An https template based on nginx + docker that allows you to quickly deploy https websites 🚀🚀🚀","archived":false,"fork":false,"pushed_at":"2024-01-11T02:21:54.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T01:42:10.094Z","etag":null,"topics":["https","https-proxy","nginx","nginx-configuration","nginx-docker","template"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Justin3go.png","metadata":{"files":{"readme":"README.ZH.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-29T06:56:35.000Z","updated_at":"2024-01-19T05:33:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d97ee5a-ea7d-4cc0-a92d-2c974094e51b","html_url":"https://github.com/Justin3go/nginx-https-template","commit_stats":null,"previous_names":["justin3go/nginx-https-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Justin3go/nginx-https-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justin3go%2Fnginx-https-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justin3go%2Fnginx-https-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justin3go%2Fnginx-https-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justin3go%2Fnginx-https-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Justin3go","download_url":"https://codeload.github.com/Justin3go/nginx-https-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justin3go%2Fnginx-https-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["https","https-proxy","nginx","nginx-configuration","nginx-docker","template"],"created_at":"2024-10-10T01:49:16.580Z","updated_at":"2026-04-27T20:33:05.242Z","avatar_url":"https://github.com/Justin3go.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-https-template\n\n## 简介\n\n一个基于`nginx + docker`的`https`模板，可以快速部署`https`网站🚀🚀🚀\n\n## 前提条件\n\n你至少并且也只需要拥有docker环境\n\n## 安装\n\n1. 进入你的`repos`目录，可以为任意目录（不过后续可能要稍做修改），这里以`/root/repos/`为例，如果没有`repos`目录，可以创建一个。然后`clone`本项目\n\n```shell\ncd /root/repos/\n```\n\n```shell\ngit clone https://github.com/Justin3go/nginx-https-template.git\ncd nginx-https-template\n\n```\n\n2. 替换`cert/`下的证书为你的证书，格式为`your-domain.key`和`your-domain.pem`，比如我的域名是`justin3go.com`，那么我的证书就是`justin3go.com.key`和`justin3go.com.pem`\n3. 运行脚本`./scripts/replace-domain.sh --domain=your-domain`\n\n```shell\nsudo chmod -R +x ./scripts # 设置脚本权限\n./scripts/replace-domain.sh --domain=your-domain # 运行脚本替换域名\n```\n\n\u003e 注意：默认`https`转发的是`80`端口，如果你的网站不是`80`端口，需要修改`/conf.d/default.conf`中的`proxy_pass`为你的端口\n\n4. 如果在第一步中你使用的自定义目录，则修改`docker-compose.yml`中的根目录为你的目录，默认为`/root/repos/`\n5. 启动容器\n\n```shell\n./scripts/run.sh\n```\n\n## 接下来\n\n- 你可以使用`docker ps`命令查看容器是否正常运行\n- 以及使用`tail -n 1000 logs/access.log`和`tail -n 1000 logs/error.log`查看`nginx`运行日志\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin3go%2Fnginx-https-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustin3go%2Fnginx-https-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin3go%2Fnginx-https-template/lists"}