
sVc           @   sB  d  d l  Z  d  d l Z d  d l Z y d  d l Z Wn! e k
 rW d d l m Z n Xd  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z g  Z e
 j Z d	   Z d d
  Z d e f d     YZ d e f d     YZ d e f d     YZ e d e f i   Z d   Z d   Z d   Z  d   Z! d   Z" d   Z# d   Z$ d   Z% d   Z& d   Z' d   Z( d   Z) d   Z* d   Z+ d   Z, d  e f d!     YZ- d" e f d#     YZ. d$ e f d%     YZ/ d& e f d'     YZ0 d( e f d)     YZ1 d* e f d+     YZ2 d, e f d-     YZ3 d. e f d/     YZ4 d0 e f d1     YZ5 d2 e f d3     YZ6 d4 e f d5     YZ7 d6 e f d7     YZ8 d8 e f d9     YZ9 d: e f d;     YZ: d< e f d=     YZ; d> e f d?     YZ< d@ e f dA     YZ= dB e f dC     YZ> dD e f dE     YZ? dF e f dG     YZ@ dH e f dI     YZA dJ e f dK     YZB dL e f dM     YZC dN e f dO     YZD dP e f dQ     YZE dR e f dS     YZF dT e f dU     YZG dV e f dW     YZH dX e f dY     YZI dZ e f d[     YZJ d\ e f d]     YZK d^ e f d_     YZL d` e f da     YZM db e f dc     YZN dd e f de     YZO df e f dg     YZP dh e f di     YZQ dj e f dk     YZR dl e f dm     YZS dn e f do     YZT dp e f dq     YZU dr e f ds     YZV dt e f du     YZW dv e f dw     YZX dx e f dy     YZY dz e f d{     YZZ d| e f d}     YZ[ d~ e f d     YZ\ d e f d     YZ] d e f d     YZ^ d e f d     YZ_ d e f d     YZ` d e f d     YZa d e f d     YZb d e f d     YZc d e f d     YZd d e f d     YZe d e f d     YZf d e f d     YZg d e f d     YZh d e f d     YZi d e f d     YZj d e f d     YZk d e f d     YZl d e f d     YZm d e f d     YZn d e f d     YZo d e f d     YZp d e f d     YZq d e f d     YZr d e f d     YZs d e f d     YZt e
 ju d k r>d e f d     YZv n  d S(   iNi   (   t   argparse_compat(   t   __version__(   t   _compat(   t   ConfigError(   t   six(   t   utilc            s     f d   } | S(   Nc            s     | |   S(   N(    (   t   instancet   argst   kwargs(   t   func(    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   _wrapped    s    (    (   R	   R
   (    (   R	   s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   wrap_method   s    c         C   sX   i  } |  p d }  x? t  D]7 } |   } | j |  k r= q n  | j   | | j <q W| S(   N(    (   t   KNOWN_SETTINGSt   namet   copy(   t   ignoret   settingst   st   setting(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   make_settings%   s    	t   Configc           B   s   e  Z d d d   Z d   Z d   Z d   Z d   Z e d    Z	 e d    Z
 e d    Z e d    Z e d	    Z e d
    Z e d    Z e d    Z e d    Z e d    Z e d    Z e d    Z RS(   c         C   sM   t    |  _ | |  _ | p1 t j j t j d  |  _ t j	 j
   |  _ d  S(   Ni    (   R   R   t   usaget   ost   patht   basenamet   syst   argvt   progt   environR   t   env_orig(   t   selfR   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   __init__2   s    	"c         C   s3   | |  j  k r" t d |   n  |  j  | j   S(   Ns    No configuration setting for: %s(   R   t   AttributeErrort   get(   R   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   __getattr__8   s    c         C   sG   | d k r* | |  j  k r* t d   n  t t |   j | |  d  S(   NR   s   Invalid access!(   R   R    t   superR   t   __setattr__(   R   R   t   value(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR$   =   s    c         C   s:   | |  j  k r" t d |   n  |  j  | j |  d  S(   Ns    No configuration setting for: %s(   R   R    t   set(   R   R   R%   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR&   B   s    c         C   s   i |  j  d 6|  j d 6} t j |   } | j d d d d d t j d d t d	 d
 d | j d d d d
 t j t |  j d |  j j	 } x" | D] } |  j | j
 |  q W| S(   NR   R   s   -vs	   --versiont   actiont   versiont   defaults   %(prog)s (version s   )
t   helps&   show program's version number and exitR   t   nargst   *t   key(   R   R   t   argparset   ArgumentParsert   add_argumentt   SUPPRESSR   t   sortedR   t   __getitem__t
   add_option(   R   R   t   parsert   keyst   k(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR5   G   s    
c         C   sK   |  j  d j   } | j d  p+ | d k } | rG |  j d k rG d S| S(   Nt   worker_classt
   SyncWorkert   synci   t   threads(   R   R!   t   endswithR;   (   R   t   urit   is_sync(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   worker_class_strY   s
    c         C   s{   |  j  d j   } | j d  p+ | d k } | rL |  j d k rL d } n  t j |  } t | d  rw | j   n  | S(   NR8   R9   R:   i   s%   gunicorn.workers.gthread.ThreadWorkert   setup(   R   R!   R<   R;   R   t
   load_classt   hasattrR@   (   R   R=   R>   R8   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR8   c   s    	c         C   s   |  j  d j   S(   NR;   (   R   R!   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR;   q   s    c         C   s   |  j  d j   S(   Nt   workers(   R   R!   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRC   u   s    c         C   s<   |  j  d j   } g  | D] } t j t j |   ^ q S(   Nt   bind(   R   R!   R   t   parse_addressR   t   bytes_to_str(   R   R   RD   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   addressy   s    c         C   s   |  j  d j   S(   Nt   user(   R   R!   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   uid~   s    c         C   s   |  j  d j   S(   Nt   group(   R   R!   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   gid   s    c         C   s8   |  j  d j   } | d  k	 r# | S|  j  d j   Sd  S(   Nt	   proc_namet   default_proc_name(   R   R!   t   None(   R   t   pn(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRL      s    c         C   s   |  j  d j   } | d k r( d } n  d |  j  k re |  j  d j d  k	 re t j d d d } n t j | d d d d } t | d	  r | j   n  | S(
   Nt   logger_classt   simples   gunicorn.glogging.Loggert   statsd_hosts!   gunicorn.instrument.statsd.Statsdt   sections   gunicorn.loggersR)   t   install(   R   R!   R%   RN   R   RA   RB   RT   (   R   R=   RP   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRP      s    	%	c         C   s   |  j  p |  j S(   N(   t   certfilet   keyfile(   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   is_ssl   s    c         C   sL   i  } x? |  j  j   D]. \ } } | j d k r | j   | | <q q W| S(   Nt   SSL(   R   t   itemsRS   R!   (   R   t   optsR   R%   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   ssl_options   s
    c         C   s   |  j  d j   } i  } | s# | Sxg | D]_ } t j |  } y | j d d  \ } } Wn! t k
 r~ t d |   n X| | | <q* W| S(   Nt   raw_envt   =i   s   environment setting %r invalid(   R   R!   R   RF   t   splitt
   ValueErrort   RuntimeError(   R   R\   t   envt   eR   R7   t   v(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRa      s    N(   t   __name__t
   __module__RN   R   R"   R$   R&   R5   t   propertyR?   R8   R;   RC   RG   RI   RK   RL   RP   RW   R[   Ra   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   0   s"   				
t   SettingMetac           B   s   e  Z d    Z d   Z RS(   c         C   s   t  t |   j } g  | D] } t | t  r | ^ q } | sS | |  | | |  St t  | d <t | d  | d <| |  | | |  } | j | j d d   t j	 |  | S(   Nt   ordert	   validatort   desct    (
   R#   Rg   t   __new__t
   isinstancet   lenR   R   t   fmt_descR!   t   append(   t   clsR   t   basest   attrst	   super_newt   bt   parentst	   new_class(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRl      s    (c         C   sC   t  j |  j   } t |  d |  t |  d | j   d  d  S(   NRj   t   shorti    (   t   textwrapt   dedentt   stript   setattrt
   splitlines(   Rq   Rj   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRo      s    (   Rd   Re   Rl   Ro   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRg      s   	t   Settingc           B   s   e  Z d Z d Z d Z d Z d Z d Z d Z	 d Z
 d Z d Z d Z d Z d Z d    Z d   Z d   Z d   Z d   Z d   Z e Z RS(   c         C   s&   |  j  d  k	 r" |  j |  j   n  d  S(   N(   R)   RN   R&   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR      s    c         C   s  |  j  s d  St |  j   } d |  j |  j f } | j d d  } i |  j d 6|  j p] d d 6|  j pm t d 6d  d 6| d	 6} |  j
 d  k	 r |  j
 | d
 <n  | d d k r | j d  n  |  j d  k	 r |  j | d <n  |  j d  k	 r |  j | d <n  | j | |   d  S(   Ns   %s [%s]t   %s   %%t   destt   storeR'   t   typeR)   R*   t   metavarR+   t   const(   t   clit   tupleRx   R)   t   replaceR   R'   R   t   strRN   t   metat   popR+   R   R0   (   R   R5   R   t   help_txtR   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR4      s(    	

c         C   s   t  j  |   S(   N(   R   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s    c         C   s   |  j  S(   N(   R%   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR!     s    c         C   s>   t  j |  j  s( t d |  j   n  |  j |  |  _ d  S(   Ns   Invalid validator: %s(   R   t   callableRi   t	   TypeErrorR   R%   (   R   t   val(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR&     s    c         C   s"   |  j  | j  k o! |  j | j k  S(   N(   RS   Rh   (   R   t   other(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   __lt__  s    N(   Rd   Re   RN   R   R%   RS   R   Ri   R   R   R'   R)   Rx   Rj   R+   R   R   R4   R   R!   R&   R   t   __cmp__(    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR~      s(   						c         C   s   |  d  k r d  St |  t  r# |  St |  t j  sH t d |    n  |  j   j   d k rd t S|  j   j   d k r t	 St
 d |    d  S(   Ns   Invalid type for casting: %st   truet   falses   Invalid boolean: %s(   RN   Rm   t   boolR   t   string_typesR   t   lowerR{   t   Truet   FalseR_   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_bool  s    c         C   s&   t  |  t  s" t d |    n  |  S(   Ns   Value is not a dictionary: %s (   Rm   t   dictR   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_dict+  s    c         C   sS   t  |  t j  s$ t |  d  }  n t |   }  |  d k  rO t d |    n  |  S(   Ni    s   Value must be positive: %s(   Rm   R   t   integer_typest   intR_   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_pos_int1  s    c         C   s?   |  d  k r d  St |  t j  s5 t d |    n  |  j   S(   Ns   Not a string: %s(   RN   Rm   R   R   R   R{   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_string<  s
    c         C   sE   |  s
 g  St  |  t j  r( |  g }  n  g  |  D] } t |  ^ q/ S(   N(   Rm   R   R   R   (   R   Rc   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_list_stringD  s
    c         C   sB   t  |   }  |  s g  Sg  |  j d  D] } | r& | j   ^ q& S(   Nt   ,(   R   R^   R{   (   R   Rc   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_string_to_listO  s    c         C   sG   t  j |   s t  j |   r* |    }  n  t  j |   r= |  St |   S(   N(   t   inspectt
   isfunctiont   ismethodt   isclassR   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_classX  s
    c            s     f d   } | S(   Nc            s/  t  |  t j  r y |  j d d  \ } } Wn! t k
 rQ t d |    n Xy( t | d | g } t | |  }  Wq t k
 r } t t	 |    q t
 k
 r t d | | f   q Xn  t j |   s t d |    n    d k r+  t t j |   d  k r+t d	     n  |  S(
   Nt   .i   sF   Value '%s' is not import string. Format: module[.submodules...].objectt   fromlists   Can not load '%s' from '%s's   Value is not six.callable: %sii    s   Value must have an arity of: %s(   Rm   R   R   t   rsplitR_   R   t
   __import__t   getattrt   ImportErrorR   R    R   Rn   R   t
   getargspec(   R   t   mod_namet   obj_namet   modRb   (   t   arity(    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   _validate_callablea  s&    +(    (   R   R   (    (   R   s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_callable`  s    c         C   s{   |  d  k r t j   St |  t  r) |  S|  j   r? t |   Sy t j |   j SWn! t	 k
 rv t
 d |    n Xd  S(   Ns   No such user: '%s'(   RN   R   t   geteuidRm   R   t   isdigitt   pwdt   getpwnamt   pw_uidt   KeyErrorR   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_userx  s    

c         C   s{   |  d  k r t j   St |  t  r) |  S|  j   r? t |   Sy t j |   j SWn! t	 k
 rv t
 d |    n Xd  S(   Ns   No such group: '%s'(   RN   R   t   getegidRm   R   R   t   grpt   getgrnamt   gr_gidR   R   (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_group  s    

c            s}   t  d       t t j    d  } | d k r;   S| d k rT   f d   S| d k rm   f d   St d   d  S(	   Nii    i   i   c            s     |  | |  S(   N(    (   t   workert   reqRa   t   _r(   R   (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   <lambda>  s    i   c            s     |  |  S(   N(    (   R   R   t   _eR   (   R   (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s    s   Value must have an arity of: 4(   R   Rn   R   R   R   (   R   t   largs(    (   R   s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_post_request  s    c         C   sh   t  |   }  t j j t j j t j j t j   |     } t j j |  sd t	 d |    n  | S(   Ns   can't chdir to %r(
   R   R   R   t   abspatht   normpatht   joinR   t   getcwdt   existsR   (   R   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_chdir  s
    3c         C   sx   |  d  k r d  St |   }  t j j t j j t j j t j   |     } t j j	 |  st t
 d |    n  | S(   Ns   %r not found(   RN   R   R   R   R   R   R   R   R   R   R   (   R   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_file  s    3c         C   se   t  |   }  |  d  k r d  S|  j d  } t |  d k rU | d t | d  f St d   d  S(   Nt   :i   i    i   s$   Value must consist of: hostname:port(   R   RN   R^   Rn   R   R   (   R   t   elements(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   validate_hostport  s    c          C   sA   t  j j t  j j t  j    d  }  t  j j |   r= |  Sd  S(   Ns   gunicorn.conf.py(   R   R   R   R   R   R   RN   (   t   config_path(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   get_default_config_file  s
    	t
   ConfigFilec           B   s8   e  Z d  Z d Z d d g Z d Z e Z d Z	 d Z
 RS(   t   configs   Config Files   -cs   --configt   CONFIGsy          The Gunicorn config file.

        A string of the form ``PATH``, ``file:PATH``, or ``python:MODULE_NAME``.

        Only has an effect when specified on the command line or as part of an
        application specific configuration.

        .. versionchanged:: 19.4
           Loading the config from a Python module requires the ``python:``
           prefix.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   t   Bindc           B   sq   e  Z d  Z d Z d Z d d g Z d Z e Z d e	 j
 k r` d j e	 j
 j d   g Z n	 d g Z d	 Z RS(
   RD   Rp   s   Server Sockets   -bs   --bindt   ADDRESSt   PORTs   0.0.0.0:{0}s   127.0.0.1:8000sd          The socket to bind.

        A string of the form: ``HOST``, ``HOST:PORT``, ``unix:PATH``. An IP is
        a valid ``HOST``.

        Multiple addresses can be bound. ex.::

            $ gunicorn -b 127.0.0.1:8000 -b [::1]:8000 test:app

        will bind the `test:app` application on localhost both on ipv6
        and ipv4 interfaces.
        (   Rd   Re   R   R'   RS   R   R   R   Ri   R   R   t   formatR!   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   !	t   Backlogc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   backlogs   Server Sockets	   --backlogt   INTi   s{          The maximum number of pending connections.

        This refers to the number of clients that can be waiting to be served.
        Exceeding this number results in the client getting an error when
        attempting to connect. It should only affect servers under significant
        load.

        Must be a positive integer. Generally set in the 64-2048 range.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	
t   Workersc           B   sS   e  Z d  Z d Z d d g Z d Z e Z e Z	 e e
 j j d d   Z d Z RS(   RC   s   Worker Processess   -ws	   --workersR   t   WEB_CONCURRENCYi   s~          The number of worker processes for handling requests.

        A positive integer generally in the ``2-4 x $(NUM_CORES)`` range.
        You'll want to vary this a bit to find the best for your particular
        application's work load.

        By default, the value of the ``WEB_CONCURRENCY`` environment variable.
        If it is not defined, the default is 1.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R   R   R!   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   
t   WorkerClassc           B   s8   e  Z d  Z d Z d d g Z d Z e Z d Z d Z	 RS(   R8   s   Worker Processess   -ks   --worker-classt   STRINGR:   sT          The type of workers to use.

        The default class (``sync``) should handle most "normal" types of
        workloads. You'll want to read :doc:`design` for information on when
        you might want to choose one of the other worker classes.

        A string referring to one of the following bundled classes:

        * ``sync``
        * ``eventlet`` - Requires eventlet >= 0.9.7
        * ``gevent``   - Requires gevent >= 0.13
        * ``tornado``  - Requires tornado >= 0.2

        Optionally, you can provide your own worker by giving Gunicorn a
        Python path to a subclass of ``gunicorn.workers.base.Worker``.
        This alternative syntax will load the gevent class:
        ``gunicorn.workers.ggevent.GeventWorker``. Alternatively, the syntax
        can also load the gevent class with ``egg:gunicorn#gevent``.
        (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   +  s   t   WorkerThreadsc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   R;   s   Worker Processess	   --threadsR   i   sl          The number of worker threads for handling requests.

        Run each worker with the specified number of threads.

        A positive integer generally in the ``2-4 x $(NUM_CORES)`` range.
        You'll want to vary this a bit to find the best for your particular
        application's work load.

        If it is not defined, the default is 1.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   G  s   	t   WorkerConnectionsc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   worker_connectionss   Worker Processess   --worker-connectionsR   i  s           The maximum number of simultaneous clients.

        This setting only affects the Eventlet and Gevent worker types.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   \  s   	t   MaxRequestsc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   max_requestss   Worker Processess   --max-requestsR   i    s          The maximum number of requests a worker will process before restarting.

        Any value greater than zero will limit the number of requests a work
        will process before automatically restarting. This is a simple method
        to help limit the damage of memory leaks.

        If this is set to zero (the default) then the automatic worker
        restarts are disabled.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   k  s   	
t   MaxRequestsJitterc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   max_requests_jitters   Worker Processess   --max-requests-jitterR   i    sB          The maximum jitter to add to the *max_requests* setting.

        The jitter causes the restart per worker to be randomized by
        ``randint(0, max_requests_jitter)``. This is intended to stagger worker
        restarts to avoid all workers restarting at the same time.

        .. versionadded:: 19.2
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   		t   Timeoutc           B   s>   e  Z d  Z d Z d d g Z d Z e Z e Z	 d Z
 d Z RS(   t   timeouts   Worker Processess   -ts	   --timeoutR   i   s          Workers silent for more than this many seconds are killed and restarted.

        Generally set to thirty seconds. Only set this noticeably higher if
        you're sure of the repercussions for sync workers. For the non sync
        workers it just means that the worker process is still communicating and
        is not tied to the length of time required to handle a single request.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   t   GracefulTimeoutc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   graceful_timeouts   Worker Processess   --graceful-timeoutR   i   s          Timeout for graceful workers restart.

        After receiving a restart signal, workers have this much time to finish
        serving requests. Workers still alive after the timeout (starting from
        the receipt of the restart signal) are force killed.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t	   Keepalivec           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t	   keepalives   Worker Processess   --keep-aliveR   i   s           The number of seconds to wait for requests on a Keep-Alive connection.

        Generally set in the 1-5 seconds range.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t   LimitRequestLinec           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   limit_request_linet   Securitys   --limit-request-lineR   i  s          The maximum size of HTTP request line in bytes.

        This parameter is used to limit the allowed size of a client's
        HTTP request-line. Since the request-line consists of the HTTP
        method, URI, and protocol version, this directive places a
        restriction on the length of a request-URI allowed for a request
        on the server. A server needs this value to be large enough to
        hold any of its resource names, including any information that
        might be passed in the query part of a GET request. Value is a number
        from 0 (unlimited) to 8190.

        This parameter can be used to prevent any DDOS attack.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t   LimitRequestFieldsc           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   limit_request_fieldsR   s   --limit-request-fieldsR   id   s?          Limit the number of HTTP headers fields in a request.

        This parameter is used to limit the number of headers in a request to
        prevent DDOS attack. Used with the *limit_request_field_size* it allows
        more safety. By default this value is 100 and can't be larger than
        32768.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t   LimitRequestFieldSizec           B   s;   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 d Z RS(   t   limit_request_field_sizeR   s   --limit-request-field_sizeR   i  s           Limit the allowed size of an HTTP request header field.

        Value is a number from 0 (unlimited) to 8190. to set the limit
        on the allowed size of an HTTP request header field.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t   Reloadc           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   reloadt	   Debuggings   --reloadt
   store_trues          Restart workers when code changes.

        This setting is intended for development. It will cause workers to be
        restarted whenever application code changes.

        The reloader is incompatible with application preloading. When using a
        paste configuration be sure that the server block does not import any
        application code or the reload will not work as designed.
        (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	
t   Spewc           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   spewR   s   --spewR   s|           Install a trace function that spews every line executed by the server.

        This is the nuclear option.
        (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t   ConfigCheckc           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   check_configR   s   --check-configR   s)           Check the configuration.
        (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR     s   	t
   PreloadAppc           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   preload_apps   Server Mechanicss	   --preloadR   sY          Load application code before the worker processes are forked.

        By preloading an application you can save some RAM resources as well as
        speed up server boot times. Although, if you defer application loading
        to each worker process, you can reload your application code easily by
        restarting workers.
        (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   +  s   	t   Sendfilec           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   sendfiles   Server Mechanicss   --no-sendfilet   store_consts           Disables the use of ``sendfile()``.

        .. versionadded:: 19.2
        .. versionchanged:: 19.4
           Swapped ``--sendfile`` with ``--no-sendfile`` to actually allow
           disabling.
        (   Rd   Re   R   RS   R   R   Ri   R'   R   R   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR   <  s   	t   Chdirc           B   s5   e  Z d  Z d Z d g Z e Z e j   Z	 d Z
 RS(   t   chdirs   Server Mechanicss   --chdirsB           Chdir to specified directory before apps loading.
        (   Rd   Re   R   RS   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR  M  s   	t   Daemonc           B   s8   e  Z d  Z d Z d d g Z e Z d Z e Z	 d Z
 RS(   t   daemons   Server Mechanicss   -Ds   --daemonR   s           Daemonize the Gunicorn process.

        Detaches the server from the controlling terminal and enters the
        background.
        (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR  X  s   t   Envc           B   s>   e  Z d  Z d Z d Z d d g Z d Z e Z g  Z	 d Z
 RS(   R\   Rp   s   Server Mechanicss   -es   --envt   ENVs           Set environment variable (key=value).

        Pass variables to the execution environment. Ex.::

            $ gunicorn -b 127.0.0.1:8000 --env FOO=1 test:app

        and test for the foo variable environment in your application.
        (   Rd   Re   R   R'   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR  f  s   
t   Pidfilec           B   s8   e  Z d  Z d Z d d g Z d Z e Z d Z	 d Z
 RS(   t   pidfiles   Server Mechanicss   -ps   --pidt   FILEsf           A filename to use for the PID file.

        If not set, no PID file will be written.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR	  z  s   t   WorkerTmpDirc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t   worker_tmp_dirs   Server Mechanicss   --worker-tmp-dirt   DIRs           A directory to use for the worker heartbeat temporary file.

        If not set, the default temporary directory will be used.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	t   Userc           B   s>   e  Z d  Z d Z d d g Z d Z e Z e j	   Z
 d Z RS(   RH   s   Server Mechanicss   -us   --usert   USERs           Switch worker processes to run as this user.

        A valid user id (as an integer) or the name of a user that can be
        retrieved with a call to ``pwd.getpwnam(value)`` or ``None`` to not
        change the worker process user.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   t   Groupc           B   s>   e  Z d  Z d Z d d g Z d Z e Z e j	   Z
 d Z RS(   RJ   s   Server Mechanicss   -gs   --groupt   GROUPs           Switch worker process to run as this group.

        A valid group id (as an integer) or the name of a user that can be
        retrieved with a call to ``pwd.getgrnam(value)`` or ``None`` to not
        change the worker processes group.
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   t   Umaskc           B   s>   e  Z d  Z d Z d d g Z d Z e Z e Z	 d Z
 d Z RS(   t   umasks   Server Mechanicss   -ms   --umaskR   i    s          A bit mask for the file mode on files written by Gunicorn.

        Note that this affects unix socket permissions.

        A valid value for the ``os.umask(mode)`` call or a string compatible
        with ``int(value, 0)`` (``0`` means Python guesses the base, so values
        like ``0``, ``0xFF``, ``0022`` are valid for decimal, hex, and octal
        representations)
        (   Rd   Re   R   RS   R   R   R   Ri   R   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   
t   TmpUploadDirc           B   s,   e  Z d  Z d Z d Z e Z d Z d Z	 RS(   t   tmp_upload_dirs   Server MechanicsR  s6          Directory to store temporary request data as they are read.

        This may disappear in the near future.

        This path should be writable by the process permissions set for Gunicorn
        workers. If not specified, Gunicorn will choose a system generated
        temporary directory.
        N(
   Rd   Re   R   RS   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	t   SecureSchemeHeaderc           B   s;   e  Z d  Z d Z e Z i d d 6d d 6d d 6Z d Z RS(	   t   secure_scheme_headerss   Server Mechanicst   ssls   X-FORWARDED-PROTOCOLt   httpss   X-FORWARDED-PROTOt   ons   X-FORWARDED-SSLs  
        A dictionary containing headers and values that the front-end proxy
        uses to indicate HTTPS requests. These tell Gunicorn to set
        ``wsgi.url_scheme`` to ``https``, so your application can tell that the
        request is secure.

        The dictionary should map upper-case header names to exact string
        values. The value comparisons are case-sensitive, unlike the header
        names, so make sure they're exactly what your front-end proxy sends
        when handling HTTPS requests.

        It is important that your front-end proxy configuration ensures that
        the headers defined here can not be passed directly from the client.
        (   Rd   Re   R   RS   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   
t   ForwardedAllowIPSc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z d Z	 RS(   t   forwarded_allow_ipss   Server Mechanicss   --forwarded-allow-ipsR   s	   127.0.0.1s+          Front-end's IPs from which allowed to handle set secure headers.
        (comma separate).

        Set to ``*`` to disable checking of Front-end IPs (useful for setups
        where you don't know in advance the IP address of Front-end, but
        you still trust the environment)
        (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	t	   AccessLogc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t	   accesslogt   Loggings   --access-logfileR  sW           The Access log file to write to.

        ``'-'`` means log to stderr.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	t   AccessLogFormatc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z d Z	 RS(   t   access_log_formatR   s   --access-logformatR   s;   %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"s          The access log format.

        ==========  ===========
        Identifier  Description
        ==========  ===========
        h           remote address
        l           ``'-'``
        u           user name
        t           date of the request
        r           status line (e.g. ``GET / HTTP/1.1``)
        m           request method
        U           URL path without query string
        q           query string
        H           protocol
        s           status
        B           response length
        b           response length or ``'-'`` (CLF format)
        f           referer
        a           user agent
        T           request time in seconds
        D           request time in microseconds
        L           request time in decimal seconds
        p           process ID
        {Header}i   request header
        {Header}o   response header
        ==========  ===========
        (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR!    s   	t   ErrorLogc           B   s8   e  Z d  Z d Z d d g Z d Z e Z d Z d Z	 RS(   t   errorlogR   s   --error-logfiles
   --log-fileR  t   -s           The Error log file to write to.

        Using ``'-'`` for FILE makes gunicorn log to stderr.

        .. versionchanged:: 19.2
           Log to stderr by default.

        (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR#  7  s   	t   Loglevelc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z d Z	 RS(   t   loglevelR   s   --log-levelt   LEVELt   infos           The granularity of Error log outputs.

        Valid level names are:

        * debug
        * info
        * warning
        * error
        * critical
        (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR&  I  s   	t   LoggerClassc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z d Z	 RS(   RP   R   s   --logger-classR   s   gunicorn.glogging.Loggers          The logger you want to use to log events in Gunicorn.

        The default class (``gunicorn.glogging.Logger``) handle most of
        normal usages in logging. It provides error and access logging.

        You can provide your own worker by giving Gunicorn a
        Python path to a subclass like ``gunicorn.glogging.Logger``.
        Alternatively the syntax can also load the Logger class
        with ``egg:gunicorn#simple``.
        (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR*  ]  s   	t	   LogConfigc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t	   logconfigR   s   --log-configR  sz       The log config file to use.
    Gunicorn uses the standard Python logging module's Configuration
    file format.
    N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR+  q  s   	t   SyslogToc           B   st   e  Z d  Z d Z d g Z d Z e Z e d k r< d Z	 n0 e d k rQ d Z	 n e d	 k rf d
 Z	 n d Z	 d Z
 RS(   t   syslog_addrR   s   --log-syslog-tot   SYSLOG_ADDRt   darwins   unix:///var/run/syslogt   freebsdt	   dragonflys   unix:///var/run/logt   openbsds   unix:///dev/logs   udp://localhost:514sY      Address to send syslog messages.

    Address is a string of the form:

    * ``unix://PATH#TYPE`` : for unix domain socket. ``TYPE`` can be ``stream``
      for the stream driver or ``dgram`` for the dgram driver.
      ``stream`` is the default.
    * ``udp://HOST:PORT`` : for UDP sockets
    * ``tcp://HOST:PORT`` : for TCP sockets

    (   R1  R2  (   Rd   Re   R   RS   R   R   R   Ri   t   PLATFORMR)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR-    s   				t   Syslogc           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   syslogR   s   --log-syslogR   s(       Send *Gunicorn* logs to syslog.
    (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR5    s   	t   SyslogPrefixc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t   syslog_prefixR   s   --log-syslog-prefixt   SYSLOG_PREFIXs       Makes Gunicorn use the parameter as program-name in the syslog entries.

    All entries will be prefixed by ``gunicorn.<prefix>``. By default the
    program name is the name of the process.
    N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR7    s   	t   SyslogFacilityc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z d Z	 RS(   t   syslog_facilityR   s   --log-syslog-facilityt   SYSLOG_FACILITYRH   s       Syslog facility name
    (
   Rd   Re   R   RS   R   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR:    s   	t   EnableStdioInheritancec           B   s8   e  Z d  Z d Z d d g Z e Z e Z d Z	 d Z
 RS(   t   enable_stdio_inheritanceR   s   -Rs   --enable-stdio-inheritanceR   s       Enable stdio inheritance

    Enable inheritance for stdio file descriptors in daemon mode.

    Note: To disable the Python stdout buffering, you can to set the user
    environment variable ``PYTHONUNBUFFERED`` .
    (   Rd   Re   R   RS   R   R   Ri   R   R)   R'   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR=    s   t
   StatsdHostc           B   s5   e  Z d  Z d Z d g Z d Z d Z e Z	 d Z
 RS(   RR   R   s   --statsd-hostt   STATSD_ADDRsR       ``host:port`` of the statsd server to log to.

    .. versionadded:: 19.1
    N(   Rd   Re   R   RS   R   R   RN   R)   R   Ri   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR?    s   	t   StatsdPrefixc           B   s5   e  Z d  Z d Z d g Z d Z d Z e Z d Z	 RS(   t   statsd_prefixR   s   --statsd-prefixt   STATSD_PREFIXRk   s       Prefix to use when emitting statsd metrics (a trailing ``.`` is added,
    if not provided).

    .. versionadded:: 19.2
    (
   Rd   Re   R   RS   R   R   R)   R   Ri   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRA    s   	t   Procnamec           B   s8   e  Z d  Z d Z d d g Z d Z e Z d Z	 d Z
 RS(   RL   s   Process Namings   -ns   --nameR   s          A base to use with setproctitle for process naming.

        This affects things like ``ps`` and ``top``. If you're going to be
        running more than one instance of Gunicorn you'll probably want to set a
        name to tell them apart. This requires that you install the setproctitle
        module.

        If not set, the *default_proc_name* setting will be used.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRD    s   
t   DefaultProcNamec           B   s&   e  Z d  Z d Z e Z d Z d Z RS(   RM   s   Process Namingt   gunicornsP           Internal setting that is adjusted for each type of application.
        (   Rd   Re   R   RS   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRE    s
   t   DjangoSettingsc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t   django_settingst   Djangos
   --settingsR   s          The Python path to a Django settings module. (deprecated)

        e.g. ``myproject.settings.main``. If this isn't provided, the
        ``DJANGO_SETTINGS_MODULE`` environment variable will be used.

        **DEPRECATED**: use the ``--env`` argument instead.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRG    s   	t
   PythonPathc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t
   pythonpaths   Server Mechanicss   --pythonpathR   s           A comma-separated list of directories to add to the Python path.

        e.g.
        ``'/home/djangoprojects/myproject,/home/python/mylibrary'``.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRJ     s   	t   Pastec           B   s8   e  Z d  Z d Z d d g Z d Z e Z d Z	 d Z
 RS(   t   pastes   Server Mechanicss   --pastes   --pasterR   s[          Load a PasteDeploy config file. The argument may contain a ``#``
        symbol followed by the name of an app section from the config file,
        e.g. ``production.ini#admin``.

        At this time, using alternate server blocks is not supported. Use the
        command line arguments to control server configuration instead.
        N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRL  /  s   t
   OnStartingc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   on_startings   Server Hooksi   c         C   s   d  S(   N(    (   t   server(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRO  F  s    s           Called just before the master process is initialized.

        The callable needs to accept a single instance variable for the Arbiter.
        (   Rd   Re   R   RS   R   Ri   R   R   R   RO  t   staticmethodR)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRN  @  s   		t   OnReloadc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t	   on_reloads   Server Hooksi   c         C   s   d  S(   N(    (   RP  (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRS  V  s    s           Called to recycle workers during a reload via SIGHUP.

        The callable needs to accept a single instance variable for the Arbiter.
        (   Rd   Re   R   RS   R   Ri   R   R   R   RS  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRR  P  s   		t	   WhenReadyc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t
   when_readys   Server Hooksi   c         C   s   d  S(   N(    (   RP  (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRU  f  s    s           Called just after the server is started.

        The callable needs to accept a single instance variable for the Arbiter.
        (   Rd   Re   R   RS   R   Ri   R   R   R   RU  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRT  `  s   		t   Preforkc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   pre_forks   Server Hooksi   c         C   s   d  S(   N(    (   RP  R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRW  v  s    s           Called just before a worker is forked.

        The callable needs to accept two instance variables for the Arbiter and
        new Worker.
        (   Rd   Re   R   RS   R   Ri   R   R   R   RW  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRV  p  s   		t   Postforkc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t	   post_forks   Server Hooksi   c         C   s   d  S(   N(    (   RP  R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRY    s    s           Called just after a worker has been forked.

        The callable needs to accept two instance variables for the Arbiter and
        new Worker.
        (   Rd   Re   R   RS   R   Ri   R   R   R   RY  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRX    s   		t   PostWorkerInitc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   post_worker_inits   Server Hooksi   c         C   s   d  S(   N(    (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR[    s    s           Called just after a worker has initialized the application.

        The callable needs to accept one instance variable for the initialized
        Worker.
        (   Rd   Re   R   RS   R   Ri   R   R   R   R[  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRZ    s   		t	   WorkerIntc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t
   worker_ints   Server Hooksi   c         C   s   d  S(   N(    (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR]    s    s           Called just after a worker exited on SIGINT or SIGQUIT.

        The callable needs to accept one instance variable for the initialized
        Worker.
        (   Rd   Re   R   RS   R   Ri   R   R   R   R]  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR\    s   		t   WorkerAbortc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   worker_aborts   Server Hooksi   c         C   s   d  S(   N(    (   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR_    s    s           Called when a worker received the SIGABRT signal.

        This call generally happens on timeout.

        The callable needs to accept one instance variable for the initialized
        Worker.
        (   Rd   Re   R   RS   R   Ri   R   R   R   R_  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR^    s   		t   PreExecc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   pre_execs   Server Hooksi   c         C   s   d  S(   N(    (   RP  (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRa    s    s           Called just before a new master process is forked.

        The callable needs to accept a single instance variable for the Arbiter.
        (   Rd   Re   R   RS   R   Ri   R   R   R   Ra  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR`    s   		t
   PreRequestc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   pre_requests   Server Hooksi   c         C   s$   |  j  j d | j | j f  d  S(   Ns   %s %s(   t   logt   debugt   methodR   (   R   R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRc    s    s           Called just before a worker processes the request.

        The callable needs to accept two instance variables for the Worker and
        the Request.
        (   Rd   Re   R   RS   R   Ri   R   R   R   Rc  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRb    s   		t   PostRequestc           B   s>   e  Z d  Z d Z e Z e j Z d   Z	 e
 e	  Z d Z RS(   t   post_requests   Server Hooksc         C   s   d  S(   N(    (   R   R   R   t   resp(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRh    s    s           Called after a worker processes the request.

        The callable needs to accept two instance variables for the Worker and
        the Request.
        (   Rd   Re   R   RS   R   Ri   R   R   R   Rh  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRg    s   		t
   WorkerExitc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   worker_exits   Server Hooksi   c         C   s   d  S(   N(    (   RP  R   (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRk    s    s           Called just after a worker has been exited.

        The callable needs to accept two instance variables for the Arbiter and
        the just-exited Worker.
        (   Rd   Re   R   RS   R   Ri   R   R   R   Rk  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRj    s   		t   NumWorkersChangedc           B   sD   e  Z d  Z d Z e d  Z e j Z d   Z	 e
 e	  Z d Z RS(   t   nworkers_changeds   Server Hooksi   c         C   s   d  S(   N(    (   RP  t	   new_valuet	   old_value(    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRm    s    s7          Called just after *num_workers* has been changed.

        The callable needs to accept an instance variable of the Arbiter and
        two integers of number of workers after and before change.

        If the number of workers is set for the first time, *old_value* would
        be ``None``.
        (   Rd   Re   R   RS   R   Ri   R   R   R   Rm  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRl    s   			t   OnExitc           B   s;   e  Z d  Z d Z e d  Z d   Z e e  Z d Z	 RS(   t   on_exits   Server Hooksi   c         C   s   d  S(   N(    (   RP  (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRq  $  s    s           Called just before exiting Gunicorn.

        The callable needs to accept a single instance variable for the Arbiter.
        (
   Rd   Re   R   RS   R   Ri   Rq  RQ  R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRp    s   	t   ProxyProtocolc           B   s5   e  Z d  Z d Z d g Z e Z e Z d Z	 d Z
 RS(   t   proxy_protocols   Server Mechanicss   --proxy-protocolR   s           Enable detect PROXY protocol (PROXY mode).

        Allow using HTTP and Proxy together. It may be useful for work with
        stunnel as HTTPS frontend and Gunicorn as HTTP server.

        PROXY protocol: http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt

        Example for stunnel config::

            [https]
            protocol = proxy
            accept  = 443
            connect = 80
            cert = /etc/ssl/certs/stunnel.pem
            key = /etc/ssl/certs/stunnel.key
        (   Rd   Re   R   RS   R   R   Ri   R   R)   R'   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRr  /  s   	t   ProxyAllowFromc           B   s/   e  Z d  Z d Z d g Z e Z d Z d Z RS(   t   proxy_allow_ipss   Server Mechanicss   --proxy-allow-froms	   127.0.0.1s          Front-end's IPs from which allowed accept proxy requests (comma separate).

        Set to ``*`` to disable checking of Front-end IPs (useful for setups
        where you don't know in advance the IP address of Front-end, but
        you still trust the environment)
        (	   Rd   Re   R   RS   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRt  I  s   	t   KeyFilec           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   RV   RX   s	   --keyfileR  s       SSL key file
    N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRv  X  s   	t   CertFilec           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   RU   RX   s
   --certfileR  s       SSL certificate file
    N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRw  d  s   	t
   SSLVersionc           B   s2   e  Z d  Z d Z d g Z e Z e j Z	 d Z
 RS(   t   ssl_versionRX   s   --ssl-versions5       SSL version to use (see stdlib ssl module's)
    (   Rd   Re   R   RS   R   R   Ri   R  t   PROTOCOL_TLSv1R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyRx  o  s   		t   CertReqsc           B   s2   e  Z d  Z d Z d g Z e Z e j Z	 d Z
 RS(   t	   cert_reqsRX   s   --cert-reqssI       Whether client certificate is required (see stdlib ssl module's)
    (   Rd   Re   R   RS   R   R   Ri   R  t	   CERT_NONER)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR{  y  s   		t   CACertsc           B   s5   e  Z d  Z d Z d g Z d Z e Z d Z	 d Z
 RS(   t   ca_certsRX   s
   --ca-certsR  s       CA certificates file
    N(   Rd   Re   R   RS   R   R   R   Ri   RN   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR~    s   	t   SuppressRaggedEOFsc           B   s5   e  Z d  Z d Z d g Z d Z e Z e Z	 d Z
 RS(   t   suppress_ragged_eofsRX   s   --suppress-ragged-eofsR   s7       Suppress ragged EOFs (see stdlib ssl module's)
    (   Rd   Re   R   RS   R   R'   R   R)   R   Ri   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	t   DoHandshakeOnConnectc           B   s5   e  Z d  Z d Z d g Z e Z d Z e Z	 d Z
 RS(   t   do_handshake_on_connectRX   s   --do-handshake-on-connectR   sU       Whether to perform SSL handshake on socket connect (see stdlib ssl module's)
    (   Rd   Re   R   RS   R   R   Ri   R'   R   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	i   i   t   Ciphersc           B   s/   e  Z d  Z d Z d g Z e Z d Z d Z RS(   t   ciphersRX   s	   --cipherst   TLSv1s9           Ciphers to use (see stdlib ssl module's)
        (	   Rd   Re   R   RS   R   R   Ri   R)   Rj   (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyR    s   	(   i   i   (w   R   R   R   R.   R   Rk   R    R   R   R  R   Ry   RF  R   R   t   gunicorn.errorsR   R   R   R   t   platformR4  R   RN   R   t   objectR   R   Rg   R~   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R  R  R  R	  R  R  R  R  R  R  R  R  R!  R#  R&  R*  R+  R-  R5  R7  R:  R=  R?  RA  RD  RE  RG  RJ  RL  RN  RR  RT  RV  RX  RZ  R\  R^  R`  Rb  Rg  Rj  Rl  Rp  Rr  Rt  Rv  Rw  Rx  R{  R~  R  R  t   version_infoR  (    (    (    s_   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/gunicorn-19.4.5-py2.7.egg/gunicorn/config.pyt   <module>   s   		A															
	%


