[16806] 2021-05-20_Reproxy:一款功能强大的边缘服务器&反向代理工具

文档创建者:s7ckTeam
浏览次数:17
最后更新:2025-01-18
2021-05-20_Reproxy:一款功能强大的边缘服务器&反向代理工具 R e p r o x y & A l p h a _ h 4 c k   F r e e B u f   2 0 2 1 - 0 5 - 2 0 R e p r o x y R e p r o x y H T T P ( S ) D o c k e r U R L U R L U R L D o c k e r L e t s   E n c r y p t S S L S S L D o c k e r D o c k e r 广 访 R e l e a s e s R e p r o x y D o c k e r R e p r o x y D o c k e r D o c k e r   H u b D o c k e r 3 4 U R L [ p i n g - u r l ] d o c k e r   p u l l   u m p u t u n / r e p r o x y d o c k e r   p u l l   g h c r . i o / u m p u t u n / r e p r o x y * , ^ / a p i / ( . * ) , h t t p s : / / a p i . e x a m p l e . c o m / $ 1 e x a m p l e . c o m , / f o o / b a r , h t t p s : / / a p i . e x a m p l e . c o m / z z z , h t t p s : / / a p i . e x a m p l e . c o m / p i n g
c o n f i g . y m l D o c k e r D o c k e r 使 使 S S L S S L a u t o s t a t i c n o n e a u t o S S L s s l . f q d n P i n g R e p r o x y : A P I 使 m g m t . e n a b l e d m g m t . l i s t e n r e p r o x y   - - f i l e . e n a b l e d   - - f i l e . n a m e = c o n f i g . y m l d e f a u l t :   #   t h e   s a m e   a s   *   ( c a t c h - a l l )   s e r v e r     -   {   r o u t e :   " ^ / a p i / s v c 1 / ( . * ) " ,   d e s t :   " h t t p : / / 1 2 7 . 0 . 0 . 1 : 8 0 8 0 / b l a h 1 / $ 1 "   }     -   {             r o u t e :   " / a p i / s v c 3 / x y z " ,             d e s t :   " h t t p : / / 1 2 7 . 0 . 0 . 3 : 8 0 8 0 / b l a h 3 / x y z " ,             " p i n g " :   " h t t p : / / 1 2 7 . 0 . 0 . 3 : 8 0 8 0 / p i n g " ,         } s r v . e x a m p l e . c o m :     -   {   r o u t e :   " ^ / a p i / s v c 2 / ( . * ) " ,   d e s t :   " h t t p : / / 1 2 7 . 0 . 0 . 2 : 8 0 8 0 / b l a h 2 / $ 1 / a b c "   } r e p r o x y . s e r v e r r e p r o x y . r o u t e r e p r o x y . d e s t r e p r o x y . p o r t r e p r o x y . p i n g r e p r o x y . e n a b l e d / p i n g R e p r o x y / h e a l t h 2 0 0   O K G E T   / r o u t e s G E T   / m e t r i c s P r o m e t h e u s   m e t r i c s
- l ,   - - l i s t e n =                                           l i s t e n   o n   h o s t : p o r t   ( d e f a u l t :   1 2 7 . 0 . 0 . 1 : 8 0 8 0 )   [ $ L I S T E N ]     - m ,   - - m a x =                                                 m a x   r e q u e s t   s i z e   ( d e f a u l t :   6 4 0 0 0 )   [ $ M A X _ S I Z E ]     - g ,   - - g z i p                                                 e n a b l e   g z   c o m p r e s s i o n   [ $ G Z I P ]     - x ,   - - h e a d e r =                                           p r o x y   h e a d e r s   [ $ H E A D E R ]             - - s i g n a t u r e                                       e n a b l e   r e p r o x y   s i g n a t u r e   h e a d e r s   [ $ S I G N A T U R E ]             - - d b g                                                   d e b u g   m o d e   [ $ D E B U G ] s s l :             - - s s l . t y p e = [ n o n e | s t a t i c | a u t o ]   s s l   ( a u t o )   s u p p o r t   ( d e f a u l t :   n o n e )   [ $ S S L _ T Y P E ]             - - s s l . c e r t =                                       p a t h   t o   c e r t . p e m   f i l e   [ $ S S L _ C E R T ]             - - s s l . k e y =                                         p a t h   t o   k e y . p e m   f i l e   [ $ S S L _ K E Y ]             - - s s l . a c m e - l o c a t i o n =                     d i r   w h e r e   c e r t i f i c a t e s   w i l l   b e   s t o r e d   b y   a u t o c e r t   m a n a g e r   ( d e f a u l t :   . / v a r / a c m e )   [ $ S S L _ A C M E _ L O C A T I O N ]             - - s s l . a c m e - e m a i l =                           a d m i n   e m a i l   f o r   c e r t i f i c a t e   n o t i f i c a t i o n s   [ $ S S L _ A C M E _ E M A I L ]             - - s s l . h t t p - p o r t =                             h t t p   p o r t   f o r   r e d i r e c t   t o   h t t p s   a n d   a c m e   c h a l l e n g e   t e s t   ( d e f a u l t :   8 0 )   [ $ S S L _ H T T P _ P O R T ]             - - s s l . f q d n =                                       F Q D N ( s )   f o r   A C M E   c e r t i f i c a t e s   [ $ S S L _ A C M E _ F Q D N ] a s s e t s :     - a ,   - - a s s e t s . l o c a t i o n =                         a s s e t s   l o c a t i o n   [ $ A S S E T S _ L O C A T I O N ]             - - a s s e t s . r o o t =                                 a s s e t s   w e b   r o o t   ( d e f a u l t :   / )   [ $ A S S E T S _ R O O T ]             - - a s s e t s . c a c h e =                               c a c h e   d u r a t i o n   f o r   a s s e t s   ( d e f a u l t :   0 s )   [ $ A S S E T S _ C A C H E ] l o g g e r :             - - l o g g e r . s t d o u t                               e n a b l e   s t d o u t   l o g g i n g   [ $ L O G G E R _ S T D O U T ]             - - l o g g e r . e n a b l e d                             e n a b l e   a c c e s s   a n d   e r r o r   r o t a t e d   l o g s   [ $ L O G G E R _ E N A B L E D ]             - - l o g g e r . f i l e =                                 l o c a t i o n   o f   a c c e s s   l o g   ( d e f a u l t :   a c c e s s . l o g )   [ $ L O G G E R _ F I L E ]             - - l o g g e r . m a x - s i z e =                         m a x i m u m   s i z e   i n   m e g a b y t e s   b e f o r e   i t   g e t s   r o t a t e d   ( d e f a u l t :   1 0 0 )   [ $ L O G G E R _ M A X _ S I Z E ]             - - l o g g e r . m a x - b a c k u p s =                   m a x i m u m   n u m b e r   o f   o l d   l o g   f i l e s   t o   r e t a i n   ( d e f a u l t :   1 0 )   [ $ L O G G E R _ M A X _ B A C K U P S ] d o c k e r :             - - d o c k e r . e n a b l e d                             e n a b l e   d o c k e r   p r o v i d e r   [ $ D O C K E R _ E N A B L E D ]             - - d o c k e r . h o s t =                                 d o c k e r   h o s t   ( d e f a u l t :   u n i x : / / / v a r / r u n / d o c k e r . s o c k )   [ $ D O C K E R _ H O S T ]             - - d o c k e r . n e t w o r k =                           d o c k e r   n e t w o r k   [ $ D O C K E R _ N E T W O R K ]             - - d o c k e r . e x c l u d e =                           e x c l u d e d   c o n t a i n e r s   [ $ D O C K E R _ E X C L U D E ]             - - d o c k e r . a u t o                                   e n a b l e   a u t o m a t i c   r o u t i n g   ( w i t h o u t   l a b e l s )   [ $ D O C K E R _ A U T O ] f i l e :             - - f i l e . e n a b l e d                                 e n a b l e   f i l e   p r o v i d e r   [ $ F I L E _ E N A B L E D ]
R e p r o x y h t t p s : / / g i t h u b . c o m / u m p u t u n / r e p r o x y             - - f i l e . n a m e =                                     f i l e   n a m e   ( d e f a u l t :   r e p r o x y . y m l )   [ $ F I L E _ N A M E ]             - - f i l e . i n t e r v a l =                             f i l e   c h e c k   i n t e r v a l   ( d e f a u l t :   3 s )   [ $ F I L E _ I N T E R V A L ]             - - f i l e . d e l a y =                                   f i l e   e v e n t   d e l a y   ( d e f a u l t :   5 0 0 m s )   [ $ F I L E _ D E L A Y ] s t a t i c :             - - s t a t i c . e n a b l e d                             e n a b l e   s t a t i c   p r o v i d e r   [ $ S T A T I C _ E N A B L E D ]             - - s t a t i c . r u l e =                                 r o u t i n g   r u l e s   [ $ S T A T I C _ R U L E S ] t i m e o u t :             - - t i m e o u t . r e a d - h e a d e r =                 r e a d   h e a d e r   s e r v e r   t i m e o u t   ( d e f a u l t :   5 s )   [ $ T I M E O U T _ R E A D _ H E A D E R ]             - - t i m e o u t . w r i t e =                             w r i t e   s e r v e r   t i m e o u t   ( d e f a u l t :   3 0 s )   [ $ T I M E O U T _ W R I T E ]             - - t i m e o u t . i d l e =                               i d l e   s e r v e r   t i m e o u t   ( d e f a u l t :   3 0 s )   [ $ T I M E O U T _ I D L E ]             - - t i m e o u t . d i a l =                               d i a l   t r a n s p o r t   t i m e o u t   ( d e f a u l t :   3 0 s )   [ $ T I M E O U T _ D I A L ]             - - t i m e o u t . k e e p - a l i v e =                   k e e p - a l i v e   t r a n s p o r t   t i m e o u t   ( d e f a u l t :   3 0 s )   [ $ T I M E O U T _ K E E P _ A L I V E ]             - - t i m e o u t . r e s p - h e a d e r =                 r e s p o n s e   h e a d e r   t r a n s p o r t   t i m e o u t   ( d e f a u l t :   5 s )   [ $ T I M E O U T _ R E S P _ H E A D E R ]             - - t i m e o u t . i d l e - c o n n =                     i d l e   c o n n e c t i o n   t r a n s p o r t   t i m e o u t   ( d e f a u l t :   9 0 s )   [ $ T I M E O U T _ I D L E _ C O N N ]             - - t i m e o u t . t l s =                                 T L S   h a n s h a k e   t r a n s p o r t   t i m e o u t   ( d e f a u l t :   1 0 s )   [ $ T I M E O U T _ T L S ]             - - t i m e o u t . c o n t i n u e =                       e x p e c t   c o n t i n u e   t r a n s p o r t   t i m e o u t   ( d e f a u l t :   1 s )   [ $ T I M E O U T _ C O N T I N U E ] m g m t :             - - m g m t . e n a b l e d                                 e n a b l e   m a n a g e m e n t   A P I   [ $ M G M T _ E N A B L E D ]             - - m g m t . l i s t e n =                                 l i s t e n   o n   h o s t : p o r t   ( d e f a u l t :   0 . 0 . 0 . 0 : 8 0 8 1 )   [ $ M G M T _ L I S T E N ] H e l p   O p t i o n s :     - h ,   - - h e l p                                                 S h o w   t h i s   h e l p   m e s s a g e

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则