Add templates for running Heat API services via apache mod_wsgi. Also add appropriate functions to lib/heat for configuring Heat. Change-Id: I1bdd678c44ddfa616a9db7db85ff6f490ff08947
		
			
				
	
	
		
			28 lines
		
	
	
		
			758 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			758 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
Listen %PUBLICPORT%
 | 
						|
 | 
						|
<VirtualHost *:%PUBLICPORT%>
 | 
						|
    WSGIDaemonProcess heat-api-cfn processes=2 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
 | 
						|
    WSGIProcessGroup heat-api-cfn
 | 
						|
    WSGIScriptAlias / %HEAT_BIN_DIR%/heat-wsgi-api-cfn
 | 
						|
    WSGIApplicationGroup %{GLOBAL}
 | 
						|
    WSGIPassAuthorization On
 | 
						|
    AllowEncodedSlashes On
 | 
						|
    <IfVersion >= 2.4>
 | 
						|
      ErrorLogFormat "%{cu}t %M"
 | 
						|
    </IfVersion>
 | 
						|
    ErrorLog /var/log/%APACHE_NAME%/heat-api-cfn.log
 | 
						|
    %SSLENGINE%
 | 
						|
    %SSLCERTFILE%
 | 
						|
    %SSLKEYFILE%
 | 
						|
 | 
						|
    <Directory %HEAT_BIN_DIR%>
 | 
						|
        <IfVersion >= 2.4>
 | 
						|
            Require all granted
 | 
						|
        </IfVersion>
 | 
						|
        <IfVersion < 2.4>
 | 
						|
            Order allow,deny
 | 
						|
            Allow from all
 | 
						|
        </IfVersion>
 | 
						|
    </Directory>
 | 
						|
</VirtualHost>
 |