Add example Apache config files
This patch is needed in 1.9 as a dependency for adding swift/apache to devstack. zhang-hare is working in parallel on a devstack patch that depend on this patch. As part of this patch we add examples dir. In this dir we add template config files that can be used either by a script (as will be done by devstack) or serve a an example to the admin. Apache2 vhost files were added under examples/apache2 Wsgi files were added under examples/wsgi Fixes: Bug #1191388 Change-Id: If90e38a0ba36f6b59016d4a1374f4100f0bbee7b
This commit is contained in:
8 changed files with 151 additions and 0 deletions
14
examples/wsgi/account-server.wsgi.template
Normal file
14
examples/wsgi/account-server.wsgi.template
Normal file
@@ -0,0 +1,14 @@
# Account Server wsgi Template
#
# Change %SERVICECONF% to the service conf file you are using
#
# For example:
# Replace %SERVICECONF% by account-server/1.conf
#
# This file than need to be saved under /var/www/swift/%SERVICENAME%.wsgi
# * Replace %SERVICENAME% with the service name you use your system
# E.g. Replace %SERVICENAME% by account-server-1
from swift.common.wsgi import init_request_processor
application, conf, logger, log_name = \
init_request_processor('/etc/swift/%SERVICECONF%','account-server')
14
examples/wsgi/container-server.wsgi.template
Normal file
14
examples/wsgi/container-server.wsgi.template
Normal file
@@ -0,0 +1,14 @@
# Container Server wsgi Template
#
# Change %SERVICECONF% to the service conf file you are using
#
# For example:
# Replace %SERVICECONF% by container-server/1.conf
#
# This file than need to be saved under /var/www/swift/%SERVICENAME%.wsgi
# * Replace %SERVICENAME% with the service name you use your system
# E.g. Replace %SERVICENAME% by container-server-1
from swift.common.wsgi import init_request_processor
application, conf, logger, log_name = \
init_request_processor('/etc/swift/%SERVICECONF%','container-server')
14
examples/wsgi/object-server.wsgi.template
Normal file
14
examples/wsgi/object-server.wsgi.template
Normal file
@@ -0,0 +1,14 @@
# Object Server wsgi Template
#
# Change %SERVICECONF% to the service conf file you are using
#
# For example:
# Replace %SERVICECONF% by object-server/1.conf
#
# This file than need to be saved under /var/www/swift/%SERVICENAME%.wsgi
# * Replace %SERVICENAME% with the service name you use your system
# E.g. Replace %SERVICENAME% by object-server-1
from swift.common.wsgi import init_request_processor
application, conf, logger, log_name = \
init_request_processor('/etc/swift/%SERVICECONF%','object-server')
14
examples/wsgi/proxy-server.wsgi.template
Normal file
14
examples/wsgi/proxy-server.wsgi.template
Normal file
@@ -0,0 +1,14 @@
# Proxy Server wsgi Template
#
# Change %SERVICECONF% to the service conf file you are using
#
# For example:
# Replace %SERVICECONF% by proxy-server.conf
#
# This file than need to be saved under /var/www/swift/%SERVICENAME%.wsgi
# * Replace %SERVICENAME% with the service name you use your system
# E.g. Replace %SERVICENAME% by proxy-server
from swift.common.wsgi import init_request_processor
application, conf, logger, log_name = \
init_request_processor('/etc/swift/%SERVICECONF%','proxy-server')
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.