Merge "Refactoring aodh apache site configuration"
diff --git a/apache/server/site/aodh.yml b/apache/server/site/aodh.yml
new file mode 100644
index 0000000..6ce5ede
--- /dev/null
+++ b/apache/server/site/aodh.yml
@@ -0,0 +1,36 @@
+parameters:
+ _param:
+ apache_ssl:
+ enabled: false
+ apache_aodh_ssl: ${_param:apache_ssl}
+ aodh_api_workers: 2
+ apache_aodh_api_host: ${linux:network:fqdn}
+ apache_aodh_api_address: ${_param:single_address}
+ apache_aodh_api_port: 8042
+ apache:
+ server:
+ site:
+ aodh:
+ enabled: false
+ available: true
+ type: wsgi
+ name: aodh
+ ssl: ${_param:apache_aodh_ssl}
+ host:
+ name: ${_param:apache_aodh_api_host}
+ address: ${_param:apache_aodh_api_address}
+ port: ${_param:apache_aodh_api_port}
+ log:
+ custom:
+ format: >-
+ %v:%p %{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %D %O \"%{Referer}i\" \"%{User-Agent}i\"
+ wsgi:
+ daemon_process: aodh-api
+ processes: ${_param:aodh_api_workers}
+ threads: 1
+ user: aodh
+ group: aodh
+ display_name: '%{GROUP}'
+ script_alias: '/ /usr/share/aodh/app.wsgi'
+ application_group: '%{GLOBAL}'
+ authorization: 'On'