{"id":16581874,"url":"https://github.com/laozhu/nginx-configs","last_synced_at":"2026-06-17T20:02:51.768Z","repository":{"id":76015660,"uuid":"98267455","full_name":"laozhu/nginx-configs","owner":"laozhu","description":"👨‍💻 My personal server's nginx configs, optimized for HTTPS and HTTP2","archived":false,"fork":false,"pushed_at":"2019-05-15T15:48:45.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T11:26:43.233Z","etag":null,"topics":["http2","https","letsencrypt","nginx","nginx-configuration"],"latest_commit_sha":null,"homepage":"https://github.com/laozhu/nginx-configs","language":null,"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/laozhu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-25T05:25:44.000Z","updated_at":"2019-05-15T15:48:46.000Z","dependencies_parsed_at":"2023-02-26T03:30:34.147Z","dependency_job_id":null,"html_url":"https://github.com/laozhu/nginx-configs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laozhu%2Fnginx-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laozhu%2Fnginx-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laozhu%2Fnginx-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laozhu%2Fnginx-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laozhu","download_url":"https://codeload.github.com/laozhu/nginx-configs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242129960,"owners_count":20076505,"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":["http2","https","letsencrypt","nginx","nginx-configuration"],"created_at":"2024-10-11T22:30:04.888Z","updated_at":"2025-10-25T20:37:19.695Z","avatar_url":"https://github.com/laozhu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx Configs \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/c/c5/Nginx_logo.svg\" alt=\"Nginx\" width=\"120\" height=\"42\" align=\"right\"\u003e\n\n_My personal server's nginx configs, optimized for HTTPS and HTTP2_\n\n## Install\n\n```bash\nsudo apt install nginx\nsudo apt install certbot python-certbot-nginx\nsudo certbot --nginx certonly\n```\n\nThen copy nginx configs to your server's `/etc/nginx` folder\n\n```bash\nln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/example.com.conf\n```\n\nChange the `server_name: example.com` and `root /home/ritchie/www/example.com` of server to yours.\n\n## Test\n\n```bash\nsudo nginx -t\nsudo nginx reload\n```\n\nTest and change your configs until it's OK ✅.\n\n## Renew\n\nIf certificate is getting expired in next 30 days, certbot will renew certificates automatically.\n\n## Credits\n\n- [Let’s Encrypt](https://letsencrypt.org/)\n- [Certbot](https://certbot.eff.org/)\n- [server-configs-nginx](https://github.com/h5bp/server-configs-nginx)\n- [SSL Server Test](https://www.ssllabs.com/ssltest/)\n- [HTTP Security Report](https://httpsecurityreport.com)\n- [Mozilla SSL Configuration Generator](https://mozilla.github.io/server-side-tls/ssl-config-generator/)\n- [CSP Evaluator](https://csp-evaluator.withgoogle.com/)\n- [CSP Generator](https://report-uri.com/home/generate/)\n- [内容安全策略](https://developers.google.com/web/fundamentals/security/csp/?hl=zh-cn)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaozhu%2Fnginx-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaozhu%2Fnginx-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaozhu%2Fnginx-configs/lists"}