← Back
Editing: http_01.cpython-38.pyc
U �]V � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ddl mZ ddlm Z dd lmZ e�e�ZG d d� dej�ZdS )z2A class that performs HTTP-01 challenges for Nginx� N)� challenges)�List)�errors)�os)�common)�obj)�nginxparserc sX e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Z� ZS )�NginxHttp01a� HTTP-01 authenticator for Nginx :ivar configurator: NginxConfigurator object :type configurator: :class:`~nginx.configurator.NginxConfigurator` :ivar list achalls: Annotated class:`~certbot.achallenges.KeyAuthorizationAnnotatedChallenge` challenges :param list indices: Meant to hold indices of challenges in a larger array. NginxHttp01 is capable of solving many challenges at once which causes an indexing issue within NginxConfigurator who must return all responses in order. Imagine NginxConfigurator maintaining state about where all of the challenges, possibly of different types, belong in the response array. This is an optional utility. c s( t t| ��|� tj�|jjd�| _d S )Nzle_http_01_cert_challenge.conf) �superr �__init__r �path�join�configZ config_dir�challenge_conf)�self�configurator�� __class__� �7/usr/lib/python3/dist-packages/certbot_nginx/http_01.pyr '