{"id":27941259,"url":"https://github.com/editd/ansible-uwsgi_app","last_synced_at":"2026-01-23T12:56:33.705Z","repository":{"id":20823139,"uuid":"24108951","full_name":"EDITD/ansible-uwsgi_app","owner":"EDITD","description":"An ansible role to run (via supervisor and nginx) a uwsgi app","archived":false,"fork":false,"pushed_at":"2016-07-12T13:01:56.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-05-07T10:44:20.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/EDITD.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}},"created_at":"2014-09-16T17:00:54.000Z","updated_at":"2016-01-27T15:49:52.000Z","dependencies_parsed_at":"2022-07-07T20:04:35.366Z","dependency_job_id":null,"html_url":"https://github.com/EDITD/ansible-uwsgi_app","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/EDITD/ansible-uwsgi_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-uwsgi_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-uwsgi_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-uwsgi_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-uwsgi_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EDITD","download_url":"https://codeload.github.com/EDITD/ansible-uwsgi_app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-uwsgi_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28692441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"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":[],"created_at":"2025-05-07T10:38:51.452Z","updated_at":"2026-01-23T12:56:33.675Z","avatar_url":"https://github.com/EDITD.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-uwsgi_app\n\nAn ansible role to run (via supervisor and nginx) a uwsgi app.\n\n## But why?\n\nOften there is a repository that sets up python uwsgi apps. However, in order to run the api reliably, we need\n\n* a way to control it and keep it running (supervisor)\n* a webserver so that things don't directly access it\n\nTo (hopefully!) simplify the app code, this role will simply take a uwsgi app and set up everything needed to run it.\n\n## An example\n\nImagine a we have a file `/opt/app/my_app.py` that has a [flask](http://flask.pocoo.org) `app`.\n\nI've set this up so that `app_bin_dir` should be your virtualenv bin directory.\nIf you aren't using virtualenv, I suppose you could use `/usr/local/bin` (or wherever your `python` and `pip` commands are).\n\n```yaml\n  - role: EDITD.uwsgi_api\n    app_name: my_app\n    app_bin_dir: location-of-virtualenv/bin\n    app_port: 5000\n    app_callable: \"my_app:app\"\n    app_num_processes: 4\n    app_user: user-to-run-as\n    app_directory: /opt/app\n    app_env_vars: {\"PRODUCTION_MODE\": \"true\"}\n    max_body_size: 1024m  # sets the maximum size of data that can be posted to the nginx server\n    restart_app: yes  # optional, ungracefully restarts the app's supervisor task after installing it\n    uwsgi_version: 2.0.12  # optional, specify the exact version of uwsgi to be installed\n```\n\nIf needed, `app_uwsgi_params` can be specified to pass extra params to uwsgi.\n\ne.g.\n```yaml\n    app_uwsgi_params: '--close-on-exec'\n```\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditd%2Fansible-uwsgi_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feditd%2Fansible-uwsgi_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditd%2Fansible-uwsgi_app/lists"}