{"id":18400520,"url":"https://github.com/docksal/service-nginx","last_synced_at":"2026-03-09T07:33:03.187Z","repository":{"id":40297302,"uuid":"169124488","full_name":"docksal/service-nginx","owner":"docksal","description":"Nginx service images for Docksal","archived":false,"fork":false,"pushed_at":"2023-11-15T20:24:27.000Z","size":61,"stargazers_count":0,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-29T18:39:11.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docksal.io","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/docksal.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},"funding":{"github":"docksal","open_collective":"docksal"}},"created_at":"2019-02-04T18:13:04.000Z","updated_at":"2022-01-05T18:24:43.000Z","dependencies_parsed_at":"2023-12-18T05:06:51.174Z","dependency_job_id":"4d8d8d57-d151-42aa-b8c9-93262d5a5435","html_url":"https://github.com/docksal/service-nginx","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":0.5161290322580645,"last_synced_commit":"a1c904eda150cf81f5c7a2ebdc8dce2742fcdf84"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/docksal/service-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fservice-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fservice-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fservice-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fservice-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docksal","download_url":"https://codeload.github.com/docksal/service-nginx/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fservice-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-06T02:34:16.893Z","updated_at":"2026-03-09T07:33:03.145Z","avatar_url":"https://github.com/docksal.png","language":"Shell","funding_links":["https://github.com/sponsors/docksal","https://opencollective.com/docksal"],"categories":[],"sub_categories":[],"readme":"# Nginx Docker images for Docksal\n\nNginx images based on the official Nginx images from Docker Hun (alpine flavor) with extra features. \n\nThis image(s) is part of the [Docksal](http://docksal.io) image library.\n\n## Versions\n\n- docksal/nginx:1.20\n- docksal/nginx:1.21\n\n## Extra features\n\n- SSL enabled (self-signed cert)\n- HTTP Basic Authentication\n- Configuration presets (`html`, `php`, `drupal`, `wordpress`)\n- User configuration overrides\n\n## Document root\n\nNginx server `root` can be set via `NGINX_SERVER_ROOT` environment variable (defaults to `/var/www/docroot`). \n\n## FastCGI server endpoint\n\nThese images are set up to work with a FastCGI server and will not start without one.  \nThe FastCGI endpoint can be set via `NGINX_FCGI_HOST_PORT` environment variable (defaults to `php-fpm:9000`).\n\n## HTTP Basic Authentication\n\nUse `NGINX_BASIC_AUTH_USER` and `NGINX_BASIC_AUTH_PASS` environment variables to set username and password.\n\nExample with Docker Compose\n\n```yaml\n  ...\n  environment:\n    - NGINX_BASIC_AUTH_USER=user\n    - NGINX_BASIC_AUTH_PASS=password\n  ...\n```\n\n## Configuration presets\n\nConfiguration presets can be set using the `NGINX_VHOST_PRESET` environment variable (defaults to `html`).\n\nAvailable options:\n\n- `NGINX_VHOST_PRESET=html` - basic HTML site\n- `NGINX_VHOST_PRESET=php` - generic PHP application\n- `NGINX_VHOST_PRESET=drupal` - Drupal\n- `NGINX_VHOST_PRESET=wordpress` - WordPress\n\n## Configuration overrides\n\nConfiguration overrides can be added to a Docksal project codebase.\n\nUse `.docksal/etc/nginx/vhost-overrides.conf` to override the default virtual host configuration, e.g.:\n\n```\nindex index2.html;\n```\n\nUse `.docksal/etc/nginx/vhosts.conf` to define additional virtual hosts, e.g.:\n\n```\nserver\n{\n    listen 80;\n    server_name test3.docksal.site;\n    root /var/www/docroot;\n    index index3.html;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocksal%2Fservice-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocksal%2Fservice-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocksal%2Fservice-nginx/lists"}