{"id":42314185,"url":"https://github.com/tmiland/nginx-installer","last_synced_at":"2026-01-27T11:39:14.408Z","repository":{"id":303150459,"uuid":"1014433208","full_name":"tmiland/nginx-installer","owner":"tmiland","description":"Automatic nginx install script","archived":false,"fork":false,"pushed_at":"2025-07-31T12:19:51.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T14:22:46.344Z","etag":null,"topics":["install-script","installation","installation-automation","installation-script","installation-scripts","installer","installer-script","modules","nginx","nginx-configuration","nginx-module","nginx-modules","nginx-proxy","nginx-server"],"latest_commit_sha":null,"homepage":"","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/tmiland.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,"zenodo":null}},"created_at":"2025-07-05T18:03:12.000Z","updated_at":"2025-07-31T12:19:55.000Z","dependencies_parsed_at":"2025-07-06T01:24:04.141Z","dependency_job_id":"2aebcfb3-5fc9-4ffc-8f2b-70f03b1685c4","html_url":"https://github.com/tmiland/nginx-installer","commit_stats":null,"previous_names":["tmiland/nginx-installer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tmiland/nginx-installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fnginx-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fnginx-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fnginx-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fnginx-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmiland","download_url":"https://codeload.github.com/tmiland/nginx-installer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fnginx-installer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["install-script","installation","installation-automation","installation-script","installation-scripts","installer","installer-script","modules","nginx","nginx-configuration","nginx-module","nginx-modules","nginx-proxy","nginx-server"],"created_at":"2026-01-27T11:39:14.325Z","updated_at":"2026-01-27T11:39:14.400Z","avatar_url":"https://github.com/tmiland.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-installer\n Automatic nginx install script\n\n[![GitHub release](https://img.shields.io/github/release/tmiland/nginx-installer.svg?style=for-the-badge)](https://github.com/tmiland/nginx-installer/releases) [![licence](https://img.shields.io/github/license/tmiland/nginx-installer.svg?style=for-the-badge)](https://github.com/tmiland/nginx-installer/blob/main/LICENSE) ![Bash](https://img.shields.io/badge/Language-SH-4EAA25.svg?style=for-the-badge)\n\n\n ## Usage\n - Note: Use either headless or extra modules option\n ```bash\n Usage:  nginx_installer.sh [options]\n   If called without arguments, installs stable nginx using /opt/nginx\n\n   --help                 |-h   display this help and exit\n   --nginx                |-ng  nginx version of choice\n   --stable               |-s   stable nginx version 1.28.0\n   --mainline             |-m   mainline nginx version 1.29.0\n   --headless             |-h   headless install\n   --modules-extra        |-me  extra modules\n   --dir                  |-d   install directory\n   --verbose              |-v   increase verbosity\n   --nproc                |-n   set the number of processing units to use\n   --enable-debug-info    |-edi enable debug info\n   --changelog            |-cl  view changelog for nginx version\n   --update               |-upd check for script update\n   --uninstall            |-u   uninstall nginx\n ```\n\n- Options / modules can be overridden, just like [nginx-autoinstall](https://github.com/angristan/nginx-autoinstall) \n- (This is the same option as extra modules option.)\n\n ```bash\n HEADLESS=y \\\n PAGESPEED=n \\\n BROTLI=n \\\n HEADERMOD=y \\\n GEOIP=y \\\n GEOIP2_ACCOUNT_ID=\u003cYOUR GEOIP2_ACCOUNT_ID\u003e \\\n GEOIP2_LICENSE_KEY=\u003cYOUR GEOIP2_LICENSE_KEY\u003e \\\n FANCYINDEX=y \\\n CACHEPURGE=y \\\n SUBFILTER=y \\\n LUA=y \\\n WEBDAV=y \\\n VTS=y \\\n RTMP=y \\\n TESTCOOKIE=y \\\n REDIS2=y \\\n HTTPREDIS=n \\\n SRCACHE=y \\\n SETMISC=y \\\n NGXECHO=y \\\n ZSTF=y \\\n BADBOT=y \\\n ./nginx_installer.sh 2\u003e\u00261 | tee nginx-installer.log\n ```\n \n ### Installation\n\nIf root password is not set, type:\n\n```bash\nsudo passwd root\n```\nLog in as root\n```bash\nsu root\n```\n- Latest release\n  ```bash\n  curl -sSL https://github.com/tmiland/nginx-installer/releases/latest/download/nginx_installer.sh \u003e nginx_installer.sh \u0026\u0026 \\\n  chmod +x nginx_installer.sh \u0026\u0026 \\\n  ./nginx_installer.sh\n  ```\n- Master\n  ```bash\n  curl -sSL https://github.com/tmiland/nginx-installer/raw/refs/heads/main/nginx_installer.sh \u003e nginx_installer.sh \u0026\u0026 \\\n  chmod +x nginx_installer.sh \u0026\u0026 \\\n  ./nginx_installer.sh\n  ```\n\nTo install this script:\n  - Latest release\n    ```bash\n    mkdir -p /opt/nginx-installer \u0026\u0026 \\\n      curl -sSL https://github.com/tmiland/nginx-installer/releases/latest/download/nginx_installer.sh \u003e /opt/nginx-installer/nginx-installer.sh \u0026\u0026 \\\n      chmod +x /opt/nginx-installer/nginx-installer.sh \u0026\u0026 \\\n      ln -s /opt/nginx-installer/nginx-installer.sh /usr/local/bin/nginx-installer \u0026\u0026 \\\n      nginx-installer\n    ```\n  - Master\n    ```bash\n    mkdir -p /opt/nginx-installer \u0026\u0026 \\\n      curl -sSL https://github.com/tmiland/nginx-installer/raw/refs/heads/main/nginx_installer.sh \u003e /opt/nginx-installer/nginx-installer.sh \u0026\u0026 \\\n      chmod +x /opt/nginx-installer/nginx-installer.sh \u0026\u0026 \\\n      ln -s /opt/nginx-installer/nginx-installer.sh /usr/local/bin/nginx-installer \u0026\u0026 \\\n      nginx-installer\n    ```\n\n  ## Compatibility and Requirements\n\n  - Debian 9 and later\n\n#### Compile options With headless\n\n```bash\nnginx -V\nnginx version: nginx/1.28.0\nbuilt with Nginx Installer @tmiland\nbuilt by gcc 12.2.0 (Debian 12.2.0-14+deb12u1) \nbuilt with OpenSSL 3.0.16 11 Feb 2025\nTLS SNI support enabled\nconfigure arguments: --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --user=nginx --group=nginx --with-cc-opt=-Wno-deprecated-declarations --with-cc-opt=-Wno-ignored-qualifiers --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module --with-cpp_test_module --with-compat --with-pcre --with-pcre-jit\n```\n\n#### Compile options With extra modules option\n```bash\nnginx -V\nnginx version: nginx/1.28.0\nbuilt with Nginx Installer @tmiland\nbuilt by gcc 12.2.0 (Debian 12.2.0-14+deb12u1) \nbuilt with OpenSSL 3.5.1 1 Jul 2025\nTLS SNI support enabled\nconfigure arguments: --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --user=nginx --group=nginx --with-cc-opt=-Wno-deprecated-declarations --with-cc-opt=-Wno-ignored-qualifiers --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module --with-cpp_test_module --with-compat --with-pcre --with-pcre-jit --add-module=/opt/nginx/modules/headers-more-nginx-module-0.39 --with-openssl=/opt/nginx/modules/openssl-3.5.1 --add-module=/opt/nginx/modules/ngx_cache_purge --add-module=/opt/nginx/modules/ngx_http_substitutions_filter_module --add-module=/opt/nginx/modules/fancyindex --with-http_dav_module --add-module=/opt/nginx/modules/nginx-dav-ext-module --add-module=/opt/nginx/modules/nginx-module-vts --add-module=/opt/nginx/modules/nginx-rtmp-module --add-module=/opt/nginx/modules/testcookie-nginx-module --add-module=/opt/nginx/modules/redis2-nginx-module --add-module=/opt/nginx/modules/srcache-nginx-module --add-module=/opt/nginx/modules/ngx_devel_kit-0.3.4 --add-module=/opt/nginx/modules/set-misc-nginx-module --add-module=/opt/nginx/modules/echo-nginx-module-0.63\n  ```\n\n## Credits\n- Code is mixed and customized from these sources\n  - [nginx-autoinstall](https://github.com/angristan/nginx-autoinstall)\n\n  ## Donations\n  \u003ca href=\"https://coindrop.to/tmiland\" target=\"_blank\"\u003e\u003cimg src=\"https://coindrop.to/embed-button.png\" style=\"border-radius: 10px; height: 57px !important;width: 229px !important;\" alt=\"Coindrop.to me\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n  #### Disclaimer \n\n  *** ***Use at own risk*** ***\n\n  ### License\n\n  [![MIT License Image](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/MIT_logo.svg/220px-MIT_logo.svg.png)](https://github.com/tmiland/nginx-installer/blob/main/LICENSE)\n\n  [MIT License](https://github.com/tmiland/nginx-installer/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmiland%2Fnginx-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmiland%2Fnginx-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmiland%2Fnginx-installer/lists"}