← Back
Editing: obj.cpython-38.pyc
U �]�$ � @ sT d Z ddlZddlZddlmZ dZG dd� dej�ZG dd� de�Zdd d �Z dS )z7Module contains classes used by the Nginx Configurator.� N)�commonZ add_headerc sr e Zd ZdZdZed Z� fdd�Zedd� �Zdd d �Z dd� Z d d� Z� fdd�Z� fdd�Z dd� Z� ZS )�Addra Represents an Nginx address, i.e. what comes after the 'listen' directive. According to the `documentation`_, this may be address[:port], port, or unix:path. The latter is ignored here. The default value if no directive is specified is \*:80 (superuser) or \*:8000 (otherwise). If no port is specified, the default is 80. If no address is specified, listen on all addresses. .. _documentation: http://nginx.org/en/docs/http/ngx_http_core_module.html#listen .. todo:: Old-style nginx configs define SSL vhosts in a separate block instead of using 'ssl' in the listen directive. :param str addr: addr part of vhost address, may be hostname, IPv4, IPv6, "", or "\*" :param str port: port number or "\*" or "" :param bool ssl: Whether the directive includes 'ssl' :param bool default: Whether the directive includes 'default_server' :param bool default: Whether this is an IPv6 address :param bool ipv6only: Whether the directive includes 'ipv6only=on' )� �*z0.0.0.0r c s<