{"id":22908850,"url":"https://github.com/ipunkt/nginx","last_synced_at":"2025-04-01T09:59:16.170Z","repository":{"id":66084733,"uuid":"68088005","full_name":"ipunkt/nginx","owner":"ipunkt","description":"docker image with nginx + php fastcgi","archived":false,"fork":false,"pushed_at":"2018-02-07T14:57:32.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-07T05:27:39.485Z","etag":null,"topics":["docker-image","nginx-php-fpm"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/ipunktbs/nginx/","language":"Smarty","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/ipunkt.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":"2016-09-13T08:03:37.000Z","updated_at":"2017-12-12T11:54:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0f3cddc-3300-470c-8e8d-4eb22c841f47","html_url":"https://github.com/ipunkt/nginx","commit_stats":null,"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fnginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fnginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fnginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fnginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipunkt","download_url":"https://codeload.github.com/ipunkt/nginx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620260,"owners_count":20806722,"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":["docker-image","nginx-php-fpm"],"created_at":"2024-12-14T03:32:40.889Z","updated_at":"2025-04-01T09:59:16.149Z","avatar_url":"https://github.com/ipunkt.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx\ndocker image with nginx\n\n## Legacy Support\nPHP7.0 was removed from this image because maintaining different versions in ipunktbs/php and a single nginx version is\neasier than creating different versions of this image.\n\nThe following Feautures have been removed because of this:\n- artisan migrate \u0026 artisan db:seed: Required PHP\n- initscript \u0026 startscript: Used to prepare for php\n- Reown Storage: Used to prepare for php\n- wait for database: only done to prepare for artisan migrate \u0026 artisan db:seed\n### Replacing those functions\nTo use these functions in the future create a start-once / restart:never container running the given command.\nWaiting for the database is not required. A healthcheck should be used instead where the application can decide itself\nwhat conditions to check.\n\n## Parameters\n### PHP\\_PASS\nDefaults to: `backend`\nSet the `fastcgi_pass` for php files\n### BACKEND\\_HOST\nDefaults to: `phpfpm:9000`\nThis host is added as `upstream backend`. Can be used, for example, for `PHP_PASS`\n### BACKEND\\_MAX\\_FAILS\nDefaults to: `0`\nSet the maximum fails before the backend host is marked as failed\n### DNS\\_RESOLVER\nDefaults to: `cat /etc/resolv.conf | grep nameserver | awk '{ print $2; }'` - first `nameserver` entry in /etc/resolv.conf\nSet the dns server which is used to resolve the hostname\n### DNS\\_VALID\nDefaults to: `10s`\nSets the amount of time a dns resolution for a host is cached.\n### PHP\\_REMOVE\nDefaults to `FALSE`\nIf set to `TRUE` it removes the php configuration from the laravel.conf nginx config. Allows to start\nthe server without a php-fpm to connect to\n### PING\\_ENDPOINT\nDefaults to `FALSE`\nIf set to `TRUE` it adds `/ping` as endpoint to the php-fpm ping function\n### CACHE\\_DIRECTORY\nThe CACHE\\_DIRECTORY parameter will create the given directory and set it's\npermissions to 770 for www-data. This is ment to be used as cache path in your\nnginx configuration file.\n### USER\\_ID + GROUP\\_ID\nMakes the nginx and php-fpm run under these ids. Useful when using the image\nfor local development\n\n## Available includes\n\n### /etc/nginx/include/harden-http-poxy.conf\nPrevent the httpoxy vulnerability\n### /etc/nginx/include/cors-options.conf\nSet up answering an option request with a 204 CORS Header\n### /etc/nginx/include/cors-php.conf\nAdd CORS Header for php scripts\n### /etc/nginx/include/proxy-https.conf\nNotify fastcgi of https usage despite ssl/tls termination at a loadbalancer.\nUses the X-FORWARDED-PROTO http header for detection.\n### /etc/nginx/include/proxy-ip-rancher.conf\nSets up nginx to extract the real client ip from the X-Forwarded-For header. The\nconfigured internal network address is 10.42.0.0/16 which is used by the rancher\nmanaged network\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fnginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipunkt%2Fnginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fnginx/lists"}