{"id":20350078,"url":"https://github.com/webbestmaster/nginx","last_synced_at":"2025-08-11T14:43:33.562Z","repository":{"id":89686926,"uuid":"334233821","full_name":"webbestmaster/nginx","owner":"webbestmaster","description":"nginx config","archived":false,"fork":false,"pushed_at":"2021-02-07T15:17:13.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T16:35:30.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/webbestmaster.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":"2021-01-29T18:46:10.000Z","updated_at":"2021-02-07T15:17:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"1edfa6ea-8dc3-4d39-8520-7f50c90b41de","html_url":"https://github.com/webbestmaster/nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webbestmaster/nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbestmaster%2Fnginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbestmaster%2Fnginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbestmaster%2Fnginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbestmaster%2Fnginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webbestmaster","download_url":"https://codeload.github.com/webbestmaster/nginx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbestmaster%2Fnginx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269905779,"owners_count":24494316,"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-08-11T02:00:10.019Z","response_time":75,"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-14T22:28:49.443Z","updated_at":"2025-08-11T14:43:33.507Z","avatar_url":"https://github.com/webbestmaster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Nginx\n\nInstall\n\n```\n$ sudo apt-get install -y --no-install-recommends nginx\n```\n\n1.9.x\n```\n$ sudo add-apt-repository ppa:chris-lea/nginx-devel -y\n$ sudo apt-get update\n$ sudo apt-get install nginx\n```\n\n\nRun\n```\n$ /usr/bin/nginx [-t] [-c ~/my-nginx.conf] [-g 'daemon off;']\n```\n\n`-c` - Specify which configuration file NGINX should use instead of the default.\n`-t` - Don’t run, just test the configuration file. NGINX checks configuration for correct syntax and then try to open files referred in configuration. \\\n`-g 'daemon off;'` - Don't run as daemon\n\nStop\n```\n$ sudo nginx -s stop\n```\n\nRestart\n```\n$ sudo nginx -s reload\n```\n\n### image_filter\nThe ngx_http_image_filter_module module (0.7.54+) is a filter that transforms images in JPEG, GIF, PNG, and WebP formats.\n\n### Docker\n\nBuild\n```\n$ docker build -t my-best-app:0.0.1 .\n```\n\n`-t` - Name and optionally a tag in the 'name:tag' format\n\n\nRun\n```\ndocker run [-d] -p \"8000:9090\" my-best-app:0.0.1\n```\n\nUse key `-d` to exit from terminal without stop server\\image\n\n`-p` - 8000 - your local port to open app, 9090 - server's port of app inside docker\n\nImage list\n```\n$ docker image ls\n```\n\nRunning images\n```\n$ docker ps\n```\n\nStop image, get image name from `$ docker ps`\n```\n$ docker stop \u003cCONTAINER ID\u003e\n```\n\nRemove image\n```\n$ docker image rm -f \u003cimage id\u003e\n```\n\n\n### Util\n\nApache Benchmark: install and run\n```\n$ sudo apt-get install apache2-utils\n$ ab -n 100 -c 5 http://localhost:9090/image/800x600/nginx-logo.png\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebbestmaster%2Fnginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebbestmaster%2Fnginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebbestmaster%2Fnginx/lists"}