{"id":24738634,"url":"https://github.com/zweifisch/nginx-sites","last_synced_at":"2025-07-24T07:05:44.701Z","repository":{"id":7985094,"uuid":"9389794","full_name":"zweifisch/nginx-sites","owner":"zweifisch","description":"manage nginx vhost configs","archived":false,"fork":false,"pushed_at":"2016-05-14T00:37:07.000Z","size":19,"stargazers_count":38,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T10:09:19.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/zweifisch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-12T08:24:43.000Z","updated_at":"2025-02-16T04:01:39.000Z","dependencies_parsed_at":"2022-09-26T22:11:04.516Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/nginx-sites","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zweifisch/nginx-sites","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fnginx-sites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fnginx-sites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fnginx-sites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fnginx-sites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/nginx-sites/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fnginx-sites/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807080,"owners_count":23987425,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-27T22:55:07.676Z","updated_at":"2025-07-24T07:05:44.658Z","avatar_url":"https://github.com/zweifisch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-sites\n\ncli utility for managing nginx vhost configs\n\ninstall using pip\n```sh\npip install nginx-sites\n```\n\n## usage\n\n```sh\nngx ls\nngx enable \u003cname\u003e\nngx disable \u003cname\u003e\nngx new \u003cname\u003e [--path=\u003cpath\u003e] [--template=\u003ctemplate\u003e] [(--port=\u003cport\u003e)...]\nngx rm \u003cname\u003e\nngx open \u003cname\u003e\nngx cp \u003csource\u003e \u003ctarget\u003e\nngx --version\n```\n\nexamples\n\n```\nngx new nodejs.test --template=node --port=3003 --port=3004\nngx new phpfpm.test --template=php --port=9000\nservice nginx reload\n```\n\n## adding new vhost templates\n\nCopy the directory `/usr/local/lib/python2.7/dist-packages/nginx_sites/templates` to `~/.nginx-sites-templates`\n\nEdit the configuration file `~/.nginx-sites.json` and set it according to the settings below:\n\n```json\n{\n    \"templates_path\": \"/home/username/.nginx-sites-templates\",\n    \"sites_available\": \"/etc/nginx/sites-available\",\n    \"nginx_bin\": \"/usr/sbin/nginx\",\n    \"sites_enabled\": \"/etc/nginx/sites-enabled\"\n}\n```\n\nCreate your templates in `~/.nginx-sites-templates`\n\nAfter setting up your new template, it is available for use with the command:\n\n```sh\nngx new myapp.dev --template=mytemplate\nngx reload\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fnginx-sites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fnginx-sites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fnginx-sites/lists"}