{"id":16452890,"url":"https://github.com/vitalk/ansible-nginx-proxy","last_synced_at":"2026-04-12T20:32:49.988Z","repository":{"id":22348871,"uuid":"25684763","full_name":"vitalk/ansible-nginx-proxy","owner":"vitalk","description":"Ansible recipe to configure a nginx as proxy server","archived":false,"fork":false,"pushed_at":"2015-03-28T09:46:49.000Z","size":228,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T11:14:34.017Z","etag":null,"topics":["ansible","nginx","proxy-pass","recipe"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/vitalk/nginx-proxy","language":null,"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/vitalk.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}},"created_at":"2014-10-24T11:10:17.000Z","updated_at":"2021-07-22T21:23:14.000Z","dependencies_parsed_at":"2022-08-20T10:40:14.636Z","dependency_job_id":null,"html_url":"https://github.com/vitalk/ansible-nginx-proxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalk%2Fansible-nginx-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalk%2Fansible-nginx-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalk%2Fansible-nginx-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalk%2Fansible-nginx-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitalk","download_url":"https://codeload.github.com/vitalk/ansible-nginx-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240914108,"owners_count":19877912,"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":["ansible","nginx","proxy-pass","recipe"],"created_at":"2024-10-11T10:14:07.903Z","updated_at":"2026-04-12T20:32:44.946Z","avatar_url":"https://github.com/vitalk.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx proxy\n\nAnsible recipe to configure a Nginx as proxy server. This recipe does not\ntrying to cover all available Nginx options and just use [the best practices](https://github.com/h5bp/server-configs-nginx)\nto configure Nginx as proxy server.\n\n## Role Variables\n\nOption | Description\n---|---\n`nginx_enabled` | Enable nginx service on boot.\n`nginx_state` | State of nginx service.\n`nginx_app_config` | The path to nginx application config.\n`app_name` | The name of the application, uses to create application configuration, e.g. should be a shorthand, lowercase and not contain any whitespaces.\n\nThis options are optional and bound to [the application config](templates/proxy-app.j2). Feel\nfree to define your own variables based on your configuration.\n\nOption | Description\n---|---\n`app_ip` | The internal ip address of the web application.\n`app_port` | The port used by application.\n`app_fqdn` | Fully qualified domain name of the application. Non-www version.\n\n## Usage example\n\nIf [the existing configuration](templates/proxy-app.j2) does not satisfy your\nneeds write your own.\n\n```nginx\nupstream backend {\n    server backend1.example.com       weight=5;\n    server backend2.example.com:8080;\n    server unix:/tmp/backend3;\n}\n\nserver {\n    location / {\n        proxy_pass http://backend;\n    }\n}\n```\n\nPut it somewhere with your playbooks, for example into\n`roles/nginx-proxy/templates/myapp.j2` and point to it via `nginx_app_config`\nvariable.\n\n### Note about relative import\n\nAnsible imports paths relative to the playbook you play, so this layout...\n\n```shell\n$ tree\n.\n├── playbook.yml\n└── roles\n    └── nginx-proxy\n        └── templates\n            └── myapp.j2\n```\n\n...corresponds to this option\n\n```ansible\nnginx_app_config: roles/nginx-proxy/templates/myapp.j2\n```\n\n## License\n\nLicensed under the [MIT license](http://mit-license.org/vitalk).\n\n## Self-Promotion\n\nCreated by Vital Kudzelka.\n\nOpen [a GitHub issue](https://github.com/vitalk/ansible-nginx-proxy/issues) if you have any suggestions or found a bug.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalk%2Fansible-nginx-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitalk%2Fansible-nginx-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalk%2Fansible-nginx-proxy/lists"}