add wildcard support to create_web_vhost_config task

This commit is contained in:
Jan Dittberner 2015-01-26 21:34:44 +01:00
parent faedcb77f0
commit afd9bbf1fe

View file

@ -40,13 +40,15 @@ def _build_document_root_path(sitename, username):
@shared_task @shared_task
def create_web_vhost_config(username, sitename): def create_web_vhost_config(username, sitename, wildcard):
""" """
This task creates a virtual host configuration on an nginx web This task creates a virtual host configuration on an nginx web
server. server.
:param str username: user who owns the site :param str username: user who owns the site
:param str sitename: site name :param str sitename: site name
:param boolean wildcard: designates whether this is website has a wildcard
subdomain
:return: :py:const:`True` if the creation finished successfully :return: :py:const:`True` if the creation finished successfully
:rtype: boolean :rtype: boolean