|
|
@@ -15,3 +15,24 @@ alerta_uwsgi_config: |
|
|
|
|
|
|
|
alerta_webui_config: |
|
|
|
endpoint: /api |
|
|
|
|
|
|
|
alerta_nginx_vhosts: |
|
|
|
- name: alerta |
|
|
|
server_names: |
|
|
|
- "{{ alerta_server_name }}" |
|
|
|
custom: |- |
|
|
|
root /opt/alerta/webui/dist; |
|
|
|
index index.html; |
|
|
|
|
|
|
|
location /api { try_files $uri @api; } |
|
|
|
location @api { |
|
|
|
include uwsgi_params; |
|
|
|
uwsgi_pass unix:/run/uwsgi/app/alerta/socket; |
|
|
|
proxy_set_header Host $host:$server_port; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
} |
|
|
|
location /config.json { alias /opt/alerta/config.json; } |
|
|
|
location / { |
|
|
|
try_files $uri $uri/ /index.html; |
|
|
|
} |