{"id":17888629,"url":"https://github.com/l-with/ansible-role-nginx","last_synced_at":"2026-05-11T05:44:29.840Z","repository":{"id":131243482,"uuid":"371493972","full_name":"l-with/ansible-role-nginx","owner":"l-with","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-13T19:27:28.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T03:14:57.051Z","etag":null,"topics":["ansible","ansible-role","nginx"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/l-with.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":"2021-05-27T20:17:51.000Z","updated_at":"2023-02-18T13:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"773bd9ec-d906-4dc4-97e4-91c2eb55f488","html_url":"https://github.com/l-with/ansible-role-nginx","commit_stats":null,"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/l-with/ansible-role-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fansible-role-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fansible-role-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fansible-role-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fansible-role-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l-with","download_url":"https://codeload.github.com/l-with/ansible-role-nginx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fansible-role-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32883469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["ansible","ansible-role","nginx"],"created_at":"2024-10-28T13:38:00.073Z","updated_at":"2026-05-11T05:44:29.806Z","avatar_url":"https://github.com/l-with.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role Nginx\n\nInstall Nginx with configuration using Let's Encrypt certificate\n\n## Hard Coded Defaults\n\n```conf\n    ssl_ecdh_curve secp384r1;\n    server_tokens off;\n    ssl_prefer_server_ciphers on;\n    add_header Strict-Transport-Security \"max-age=31536000; preload\" always;\n```\n\n## Usage\n\nWithout any parameter nginx is configured similar to a standard installation \nwith Let's Encrypt installed.\nLet's Encrypt is not installed, \nand the certificate is not generated by this module but assumed to be already installed.\n\n## Role Variables\n\n| group | variable | default | description |\n| --- | --- | --- | --- |\n| basic | `nginx_install` | `true` | if nginx should be installed and enabled |\n| basic | `nginx_config` |  `true` | if the standard nginx configration should be done |\n| basic | `nginx_restart` | `true` | if nginx should be restarted |\n| basic | `nginx_configuration_home` | `/etc/nginx` | the configration home of nginx\n| basic | `nginx_server_FQDN` | | the FQDN of the server for nginx_server_name and Let's Encrypt certificates |\n| vouch | `nginx_vouch_FQDN` | | the FQDN of vouch-proxy |\n| vouch | `nginx_vouch_port`: `9090` | the port of vouch-proxy |\n| extra | `nginx_GNU` | `true` | if the [GNU Terry Pratchett](http://www.gnuterrypratchett.com) header should be inserted |\n| configuration | `nginx_https_map` | | the map stanza configuration for nginx https configuration |\n| configuration | `nginx_https_conf` | | the nginx https configuration after `server_name` |\n| configuration | `nginx_confs` | `[]` | the extra configurations for nginx as list of dicts, the `loop_var` is `nginx_conf` |\n\n```yaml\n  - port: 8201\n    server_name: www.example.com\n    FQDN: www.example.com\n    nginx_conf: |-\n      location / {\n        proxy_pass         http://localhost:9201/;\n        proxy_http_version 1.1;\n        proxy_read_timeout 900;\n\n        proxy_set_header  Host              $host;\n        proxy_set_header  X-Real-IP         $remote_addr;\n        proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;\n        proxy_set_header  X-Forwarded-Proto $scheme;\n      }\n```\n\n| dict | element | description |\n| --- | --- | --- |\n| `nginx_conf` | `port` | the port for `listen` |\n| `nginx_conf` | `server_name` | the server_name for `server_name` |\n| `nginx_conf` | `FQDN` | the FQDN use for include Let's Encrypt certificates: `/etc/letsencrypt/live/{{ nginx_conf.FQDN }}/...` |\n| `nginx_conf` | `nginx_conf` | the configuration to be included in the `sever` stanza |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-with%2Fansible-role-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl-with%2Fansible-role-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-with%2Fansible-role-nginx/lists"}