Switch from wsgi script to wsgi module

Change-Id: If13a79c15a42fa52150fd3fee0207b6828e5cde3
This commit is contained in:
Jonathan Rosser
2025-05-21 10:32:47 +01:00
parent 13c0161b5d
commit 863893a522
2 changed files with 1 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ blazar_services:
init_config_overrides: "{{ blazar_api_init_config_overrides }}"
start_order: 1
wsgi_app: true
wsgi_name: blazar-api-wsgi
wsgi: "blazar.wsgi.api:application"
uwsgi_port: "{{ blazar_service_port }}"
uwsgi_bind_address: "{{ blazar_bind_address }}"
uwsgi_overrides: "{{ blazar_api_uwsgi_ini_overrides }}"

View File

@@ -66,7 +66,6 @@ uwsgi_blazar_services: |-
and ('wsgi_app' in value and value['wsgi_app']) %}
{% set _ = value.update(
{
'wsgi_path': blazar_bin ~ '/' ~ value.wsgi_name,
'wsgi_venv': blazar_bin | dirname,
'uwsgi_uid': blazar_system_user_name,
'uwsgi_guid': blazar_system_group_name,