¿ìËÙÉÏÊÖNginx Proxy Manager£ºÌá¸ßÍøÕ¾ÏìÓ¦ËÙÂʵÄÀûÆ÷
¿ìËÙÉÏÊÖNginx Proxy Manager£ºÌá¸ßÍøÕ¾ÏìÓ¦ËÙÂʵÄÀûÆ÷£¬ÐèÒªÏêϸ´úÂëʾÀý
Ëæ×Å»¥ÁªÍøµÄ¿ìËÙÉú³¤£¬Ô½À´Ô½¶àµÄÍøÕ¾ºÍÓ¦ÓóÌÐòÐèÒª´¦Öóͷ£´ó×ÚµÄÇëÇ󣬶øÒ»¸öÓÅÒìµÄÊðÀíЧÀÍÆ÷ÊÇ°ü¹ÜÍøÕ¾¸ßÐÔÄܺ͸߿ÉÓÃÐÔµÄÖ÷Òª×é³É²¿·Ö¡£NginxÊÇÒ»¸öÐÔÄÜÇ¿Ê¢µÄ·´ÏòÊðÀíЧÀÍÆ÷£¬¶øNginx Proxy ManagerÊÇÖÎÀíNginxµÄÒ»¸ö¿ÉÊÓ»¯¹¤¾ß¡£±¾ÎĽ«ÏÈÈÝÔõÑù¿ìËÙÉÏÊÖNginx Proxy Manager£¬²¢ÌṩһЩÏêϸµÄ´úÂëʾÀý£¬×ÊÖú¶ÁÕ߸üºÃµØÏàʶºÍʹÓøù¤¾ß¡£
Ò»¡¢×°ÖÃÓëÉèÖÃ
Ê×ÏÈ£¬ÎÒÃÇÐèÒªÔÚЧÀÍÆ÷ÉÏ×°ÖÃNginx Proxy Manager¡£¿ÉÒÔͨ¹ýÒÔÏ°취Íê³É×°Öãº
Ê×ÏÈ£¬È·±£ÄãµÄϵͳÉÏÒѾװÖÃÁËDockerºÍDocker Compose¡£ÈôÊÇûÓÐ×°Ö㬿ÉÒÔƾ֤¹Ù·½Îĵµ¾ÙÐÐ×°Öá£
ÏÂÔز¢½âѹNginx Proxy ManagerµÄ×°Öðü¡£¿ÉÒÔÔÚ¹Ù·½ÍøÕ¾ÉÏÕÒµ½×îеİ汾¡£
·¿ªÏÂÁîÐд°¿Ú£¬½øÈë½âѹºóµÄÎļþ¼Ð¡£
ÔËÐÐÒÔÏÂÏÂÁîÆô¶¯Nginx Proxy Manager£º
docker-compose up -d
µÇ¼ºó¸´ÖÆ
Õ⽫Æô¶¯Nginx Proxy ManagerµÄDockerÈÝÆ÷¡£
·¿ªä¯ÀÀÆ÷£¬»á¼ûЧÀÍÆ÷µÄIPµØµãºÍ¶Ë¿ÚºÅ£¨Ä¬ÒÔΪhttp://localhost:81£©£¬¼´¿É½øÈëNginx Proxy ManagerµÄÖÎÀí½çÃæ¡£
ÔÚ½øÈëÖÎÀí½çÃæ֮ǰ£¬ÎÒÃÇÐèÒª¾ÙÐÐһЩ»ù±¾µÄÉèÖá£Ê×ÏÈ£¬ÎÒÃÇÐèÒªÉèÖÃÖÎÀíÔ±µÄÓû§ÃûºÍÃÜÂë¡£ÔÚÖÎÀí½çÃæµÄ×ó²à²Ëµ¥ÖУ¬ÕÒµ½¡°Settings¡±Ñ¡Ïµã»÷½øÈ롣Ȼºó£¬ÔÚ¡°Admin User¡±Ò»À¸ÖУ¬ÌîдÄãÏëÒªÉèÖõÄÓû§ÃûºÍÃÜÂë¡£
¶þ¡¢Ìí¼ÓÊðÀíЧÀÍÆ÷
ÔÚNginx Proxy ManagerµÄÖÎÀí½çÃæÖУ¬ÎÒÃÇ¿ÉÒÔºÜÊÇÀû±ãµØÌí¼ÓºÍÉèÖÃÊðÀíЧÀÍÆ÷¡£ÒÔÏÂÊÇÒ»¸öÏêϸµÄʾÀý£º
ÔÚÖÎÀí½çÃæµÄ×ó²à²Ëµ¥ÖУ¬ÕÒµ½¡°Proxy Hosts¡±Ñ¡Ïµã»÷½øÈë¡£
µã»÷Ò³ÃæÓÒÉϽǵġ°Add Proxy Host¡±°´Å¥£¬½øÈëн¨ÊðÀíЧÀÍÆ÷µÄÒ³Ãæ¡£
ÔÚн¨ÊðÀíЧÀÍÆ÷µÄÒ³ÃæÖУ¬ÌîдÒÔÏÂÐÅÏ¢£º
Hostname: ÊäÈëЧÀÍÆ÷µÄÓòÃû»òIPµØµã¡£
Scheme: Ñ¡ÔñÐÒéÀàÐÍ£¬ÀýÈçHTTP»òHTTPS¡£
Upstream Host: ÊäÈëÒªÊðÀíµ½µÄÄ¿µÄЧÀÍÆ÷µÄÓòÃû»òIPµØµã¡£
Upstream Port: ÊäÈëÒªÊðÀíµ½µÄÄ¿µÄЧÀÍÆ÷µÄ¶Ë¿ÚºÅ¡£
SSL: ƾ֤ÐèҪѡÔñÊÇ·ñ¿ªÆôSSL¼ÓÃÜ¡£
Force SSL: ƾ֤ÐèҪѡÔñÊÇ·ñÇ¿Öƽ«ËùÓÐÇëÇóת·¢µ½HTTPS¡£
µã»÷Ò³ÃæÏ·½µÄ¡°Save¡±°´Å¥£¬ÉúÑÄÉèÖá£
Ìí¼ÓÍê³Éºó£¬Nginx Proxy Manager½«»á×Ô¶¯ÉèÖÃNginx·´ÏòÊðÀí£¬Î´À´×ÔÓû§µÄÇëÇóת·¢µ½Ö¸¶¨µÄÄ¿µÄЧÀÍÆ÷¡£Äã¿ÉÒÔƾ֤ÐèÒªÌí¼Ó¶à¸öÊðÀíЧÀÍÆ÷£¬ÒÔÖª×ã²î±ðµÄÐèÇó¡£
Èý¡¢ÆäËû¹¦Ð§ÓëÀ©Õ¹
³ýÁËÊðÀíЧÀÍÆ÷£¬Nginx Proxy Manager»¹¾ßÓÐÆäËûһЩǿʢµÄ¹¦Ð§ºÍÀ©Õ¹ÐÔ¡£ÒÔÏÂÊÇһЩʾÀý£º
SSLÖ¤ÊéÖÎÀí£ºNginx Proxy ManagerÖ§³ÖÖÎÀíSSLÖ¤Ê飬¿ÉÒÔ×ÊÖúÓû§ÇáËÉÉèÖú͸üÐÂSSLÖ¤Êé¡£
×Ô½ç˵ģ°å£ºÓû§¿ÉÒÔ×Ô½ç˵NginxÉèÖÃÄ£°å£¬ÒÔÖª×ãÌض¨µÄÐèÇó¡£
ACLÖÎÀí£ºNginx Proxy ManagerÖ§³Ö»á¼û¿ØÖÆÁÐ±í£¨ACL£©ÖÎÀí£¬¿ÉÒÔ×ÊÖúÓû§ÏÞÖÆ»òÔÊÐíÌض¨µÄ»á¼û¡£
ÈÕÖ¾ÖÎÀí£ºNginx Proxy ManagerÌṩÈÕÖ¾ÖÎÀí¹¦Ð§£¬¿ÉÒÔ×ÊÖúÓû§ÊµÊ±¼à¿ØºÍÆÊÎöÊðÀíЧÀÍÆ÷µÄÔËÐÐÇéÐΡ£
×ܽá
ÕýÈç±¾ÎÄËùÏÈÈݵģ¬Nginx Proxy ManagerÊÇÒ»¸öÇ¿Ê¢ÇÒÒ×ÓÚʹÓõŤ¾ß£¬¿ÉÒÔ×ÊÖúÓû§¿ìËٴºÍÖÎÀíNginx·´ÏòÊðÀíЧÀÍÆ÷¡£Í¨¹ý¼òÆÓµÄÉèÖúͲÙ×÷£¬Óû§¿ÉÒÔÇáËɵØÌá¸ßÍøÕ¾µÄÏìÓ¦ËÙÂʺͿÉÓÃÐÔ¡£Ï£Íû±¾ÎÄÌṩµÄÏêϸ´úÂëʾÀýÄܹ»×ÊÖú¶ÁÕ߸üºÃµØÃ÷È·ºÍʹÓÃNginx Proxy Manager£¬´Ó¶ø¸üºÃµØÓ¦ÓÃÓÚÏÖʵµÄ¿ª·¢ºÍÔËάÊÂÇéÖС£
ÒÔÉϾÍÊÇ¿ìËÙÉÏÊÖNginx Proxy Manager£ºÌá¸ßÍøÕ¾ÏìÓ¦ËÙÂʵÄÀûÆ÷µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡