{"id":19544469,"url":"https://github.com/selectnull/nxhosts","last_synced_at":"2026-06-11T02:31:05.687Z","repository":{"id":145326019,"uuid":"258498189","full_name":"selectnull/nxhosts","owner":"selectnull","description":"Small utility to help manage Nginx server","archived":false,"fork":false,"pushed_at":"2020-11-04T10:14:20.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T16:56:38.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/selectnull.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":"2020-04-24T11:51:09.000Z","updated_at":"2020-11-04T10:14:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"8058ce7f-e9f0-485d-a6eb-8f0ce473dc6d","html_url":"https://github.com/selectnull/nxhosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/selectnull/nxhosts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fnxhosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fnxhosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fnxhosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fnxhosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selectnull","download_url":"https://codeload.github.com/selectnull/nxhosts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fnxhosts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34180147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":"2024-11-11T03:29:05.000Z","updated_at":"2026-06-11T02:31:05.671Z","avatar_url":"https://github.com/selectnull.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"nxhosts\n=======\n\nnxhosts is a small bash utility to help manage Nginx server. The\nmotivation to write this came from often needed process of:\n\n    vi /etc/nginx/sites-available/DOMAIN.conf\n    nginx -t # to check we haven't broke something\n\nWhen adding new server block, it's even worse:\n\n    cd /etc/nginx\n    vi sites-available/NEW-DOMAIN.conf\n    cd sites-enabled\n    ln -s ../sites-available/NEW-DOMAIN.conf\n    cd ..\n    nginx -t\n\nIt's a lot of typing, I wanted something shorter. And with bash\ncompletition.\n\nThere is probably something similar outthere, but I just wanted to hack\non something instead of working. Hey, it's Friday...\n\n\nHow to use it?\n--------------\n\nList files in `sites-available` directory:\n\n    nxhosts list\n\nTest nginx configuration:\n\n    nxhosts test\n\nEnable or disable specific server(s):\n\n    nxhosts enable server [server ...]\n\nor\n\n    nxhosts disable server [server ...]\n\nView one or more nginx server files (files in `sites-available`\ndirectory):\n\n    nxhosts view server [server ...]\n\nEdit one or more nginx server files (files in `sites-available`\ndirectory):\n\n    nxhosts edit server [server ...]\n\n\nHow to install it?\n------------------\n\nJust copy `nxhosts` script to anywhere in PATH. There is bash completion\nscript, source it from `.profile`. It could be put into\n`/etc/bash_completion.d/` but this is not meant to be used by anyone\nother than root user, so that does not really makes sense.\n\n\nLicence\n-------\n\nnxhosts is MIT licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectnull%2Fnxhosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselectnull%2Fnxhosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectnull%2Fnxhosts/lists"}