{"id":23660569,"url":"https://github.com/ashwaniydv/node-nginx","last_synced_at":"2025-12-03T01:30:15.506Z","repository":{"id":269225249,"uuid":"906777499","full_name":"ashwaniYDV/node-nginx","owner":"ashwaniYDV","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-22T20:46:16.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T03:58:18.115Z","etag":null,"topics":["ingress","nginx","reverse-proxy"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/ashwaniYDV.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":"2024-12-21T21:50:44.000Z","updated_at":"2024-12-22T20:46:20.000Z","dependencies_parsed_at":"2024-12-21T22:39:58.145Z","dependency_job_id":null,"html_url":"https://github.com/ashwaniYDV/node-nginx","commit_stats":null,"previous_names":["ashwaniydv/node-nginx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fnode-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fnode-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fnode-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fnode-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwaniYDV","download_url":"https://codeload.github.com/ashwaniYDV/node-nginx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239652966,"owners_count":19675008,"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":["ingress","nginx","reverse-proxy"],"created_at":"2024-12-29T03:58:20.630Z","updated_at":"2025-12-03T01:30:15.457Z","avatar_url":"https://github.com/ashwaniYDV.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## call your backend app locally as http://myapp.com/api instead of http://localhost:3000/api\n\n### Notes\n* 127.0.0.1 myapp.com\n* After adding above line to /etc/hosts, your Node.js app is accessible at http://myapp.com:3000/api.\n* To remove the port :3000 from the URL, you can use a reverse proxy like NGINX or Apache.\n* Here's a fully dockerised example using NGINX as a reverse proxy.\n\n### Steps\nModify your hosts file to point myapp.com to localhost. \\\nAdd myapp.com to /etc/hosts\n```\n127.0.0.1 myapp.com\n```\n\nBuild and run the containers:\n```\ndocker-compose up -d\n```\n\n### /etc/hosts\n* The /etc/hosts file is a plain text file used to manually map domain names (hostnames) to their corresponding IP addresses, essentially acting as a local DNS resolver, allowing you to directly link a website address to its IP address without relying on a remote DNS server\n* It's particularly useful for testing websites or when a DNS server is unavailable.\n* https://unix.stackexchange.com/questions/421491/what-is-the-purpose-of-etc-hosts\n* Its primary present-day use is to bypass DNS resolution. A match found in the /etc/hosts file will be used before any DNS entry. In fact, if the name searched (like localhost) is found in the file, no DNS resolution will be performed at all.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwaniydv%2Fnode-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwaniydv%2Fnode-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwaniydv%2Fnode-nginx/lists"}