{"id":15288999,"url":"https://github.com/tochk/nginx-ssl-confgen","last_synced_at":"2025-04-13T08:12:12.166Z","repository":{"id":64318881,"uuid":"408078825","full_name":"tochk/nginx-ssl-confgen","owner":"tochk","description":"Simple nginx config generator with let's encrypt support","archived":false,"fork":false,"pushed_at":"2023-07-30T14:11:06.000Z","size":38,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T08:12:07.448Z","etag":null,"topics":["https","letsencrypt","nginx","ssl"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tochk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-19T08:59:55.000Z","updated_at":"2024-06-17T16:06:51.000Z","dependencies_parsed_at":"2024-06-20T06:58:35.278Z","dependency_job_id":"b6ddec6b-ee46-47bf-a5b4-9e87dcda2880","html_url":"https://github.com/tochk/nginx-ssl-confgen","commit_stats":null,"previous_names":["tochk/nginx-confgen"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochk%2Fnginx-ssl-confgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochk%2Fnginx-ssl-confgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochk%2Fnginx-ssl-confgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochk%2Fnginx-ssl-confgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tochk","download_url":"https://codeload.github.com/tochk/nginx-ssl-confgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681495,"owners_count":21144700,"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":["https","letsencrypt","nginx","ssl"],"created_at":"2024-09-30T15:55:32.956Z","updated_at":"2025-04-13T08:12:12.146Z","avatar_url":"https://github.com/tochk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx config generator (nginx-ssl-confgen)\n\nSimple nginx config generator with let's encrypt support\n\n## Prerequisites\n\n- nginx\n- certbot (if you want to use let's encrypt certificate generation)\n- python3-certbot-nginx (if you want to use let's encrypt certificate generation)\n\n### Ubuntu server installation\n\n```shell\napt-get update\napt-get install nginx certbot python3-certbot-nginx\n```\n\n## Installation\n\nGo to releases page and download `deb` package.\n\n## Usage\n\n```\nUsage of nginx-ssl-confgen:\n  -agree-tos\n        let's encrypt terms of service agreement\n  -email string\n        email for letsencrypt\n  -generate-ssl\n        generate letsencrypt certificate\n  -local-dir string\n        http files directory\n  -nginx-conf-dir string\n        nginx sites available directory (default \"/etc/nginx/sites-available/\")\n  -nginx-conf-dir-enabled string\n        nginx sites enabled directory (default \"/etc/nginx/sites-enabled/\")\n  -proxy-pass string\n        proxy pass server\n  -servers string\n        comma-separeted domains list\n  -ssl-full-chain string\n        ssl full chain path\n  -ssl-private-key string\n        ssl private key path\n```\n\nExample (with let's encrypt certificate and proxy pass):\n```shell\nnginx-ssl-confgen -servers=example.com -proxy-pass=http://localhost:8080 -generate-ssl -email=me@example.com -agree-tos\n```\n\n### Crontab setup (for certbot renewal)\n\nIf your certbot package does not have `certbot.timer`, add the following line to the crontab for automatic certificate renewal:\n\n```cronexp\n0 6 * * * certbot renew\n```\n\n## Building\n\n### Prerequisites\n\n- go 1.20\n\n### Building binary\n\n```shell\nmake build-amd64 # amd64 binary\n```\nOR\n```shell\nmake build-arm64 # arm64 binary\n```\n\n### Building deb package\n\n```shell\nmake build-deb-amd64 # amd64 deb package\n```\nOR\n```shell\nmake build-deb-arm64 # arm64 deb package\n```\n\n# TODO\n\n- [ ] Tests\n- [ ] Linters\n- [ ] RPM builds","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftochk%2Fnginx-ssl-confgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftochk%2Fnginx-ssl-confgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftochk%2Fnginx-ssl-confgen/lists"}