尊龙凯时人生就是博

ʹÓÃNginx Proxy ManagerʵÏÖ·´ÏòÊðÀíµÄ¸ºÔØƽºâÕ½ÂÔ

ʹÓÃNginx Proxy ManagerʵÏÖ·´ÏòÊðÀíµÄ¸ºÔØƽºâÕ½ÂÔ

Nginx Proxy ManagerÊÇÒ»¿î»ùÓÚNginxµÄÊðÀíÖÎÀí¹¤¾ß £¬¿ÉÒÔ×ÊÖúÎÒÃÇÇáËÉʵÏÖ·´ÏòÊðÀíºÍ¸ºÔØƽºâ¡£Í¨¹ýÉèÖÃNginx Proxy Manager £¬ÎÒÃÇ¿ÉÒÔ½«ÇëÇó·Ö·¢¸ø¶à¸öºó¶ËЧÀÍÆ÷ £¬ÒÔʵÏÖ¸ºÔØƽºâ £¬Ìá¸ßϵͳµÄ¿ÉÓÃÐÔºÍÐÔÄÜ¡£

Ò»¡¢×°ÖúÍÉèÖÃNginx Proxy Manager

×°ÖÃNginx Proxy Manager

Ê×ÏÈ £¬ÎÒÃÇÐèÒªÔÚЧÀÍÆ÷ÉÏ×°ÖÃNode.jsºÍNginx Proxy Manager¡ £¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´×°ÖÃNode.js£º

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt-get install -y nodejs

µÇ¼ºó¸´ÖÆ

È»ºó £¬Í¨¹ýÒÔÏÂÏÂÁîÀ´×°ÖÃNginx Proxy Manager£º

npm install -g pm2

pm2 install pm2-logrotate

pm2 set pm2-logrotate:max_size 100M

pm2 set pm2-logrotate:retain 10

git clone https://github.com/jc21/nginx-proxy-manager.git

cd nginx-proxy-manager

npm install --only=production

µÇ¼ºó¸´ÖÆ

ÉèÖÃNginx Proxy Manager

ÔÚ×°ÖÃÍê³Éºó £¬ÎÒÃÇÐèÒª¾ÙÐÐһЩÉèÖá£Ê×ÏÈ £¬ÓÃÎı¾±à¼­Æ÷·­¿ªconfig.jsonÎļþ£º

nano config.json

µÇ¼ºó¸´ÖÆ

ÔÚÎļþÖÐ £¬ÎÒÃÇ¿ÉÒÔÕÒµ½ÒÔÏÂÈý¸öÉèÖÃÏ

http_port£ºÖ¸¶¨Nginx Proxy ManagerʹÓõÄHTTP¶Ë¿Ú £¬Ä¬ÒÔΪ80¡£

https_port£ºÖ¸¶¨Nginx Proxy ManagerʹÓõÄHTTPS¶Ë¿Ú £¬Ä¬ÒÔΪ443¡£

ssl£ºÖ¸¶¨HTTPSÖ¤ÊéºÍÃÜÔ¿µÄ·¾¶¡£Ç뽫ÕâЩÎļþ°²ÅÅÔÚÖ¸¶¨Â·¾¶Ï¡£

ƾ֤ÏÖʵÐèÒª £¬ÉèÖÃÕâЩѡÏî £¬²¢ÉúÑÄÎļþ¡£

Æô¶¯Nginx Proxy Manager

Æô¶¯Nginx Proxy ManagerÖ»ÐèÒªÔËÐÐÒÔÏÂÏÂÁ

pm2 start index.js --name="nginx-proxy-manager"

µÇ¼ºó¸´ÖÆ

¶þ¡¢ÉèÖøºÔØƽºâÕ½ÂÔ

Ìí¼Óºó¶ËЧÀÍÆ÷

ÔÚNginx Proxy ManagerµÄÖÎÀí½çÃæÖÐ £¬Ñ¡Ôñ”Proxy Hosts”Ñ¡Ï¡£È»ºó £¬µã»÷”Add Proxy Host”°´Å¥¡£

ÔÚ”General”Ñ¡ÏÖÐ £¬ÌîдÏà¹ØÐÅÏ¢ £¬°üÀ¨Ö÷»úÃû³Æ¡¢ÐÎòºÍÊðÀíЧÀ͵ÄÓòÃû¡£

ÔÚ”Upstreams”Ñ¡ÏÖÐ £¬µã»÷”Add Upstream Server”°´Å¥¡£Ìîдºó¶ËЧÀÍÆ÷µÄIPµØµãºÍ¶Ë¿ÚºÅ £¬²¢µã»÷”Save”°´Å¥¡£

ÉèÖøºÔØƽºâÕ½ÂÔ

Ôڱ༭Proxy HostµÄ½çÃæÖÐ £¬Ñ¡Ôñ”Proxy Rules”Ñ¡Ï¡£

µã»÷”Add Proxy Rule”°´Å¥ £¬ÔÚ”Rule”×Ö¶ÎÖÐÌîд·´ÏòÊðÀí¹æÔò £¬Èç/api¡£

ÔÚ”Upstream Hosts”×Ö¶ÎÖÐ £¬Ñ¡Ôñ֮ǰÌí¼ÓµÄºó¶ËЧÀÍÆ÷ £¬²¢ÉèÖÃȨÖØ¡£Í¨¹ýµ÷½âȨÖØÖµ £¬¿ÉÒÔ¿ØÖÆÇëÇó±»·Ö·¢µ½¸÷¸öºó¶ËЧÀÍÆ÷µÄ±ÈÀý¡£È¨ÖØÖµÔ½´ó £¬ÇëÇó±»·Ö·¢µ½¸ÃЧÀÍÆ÷µÄ¸ÅÂʾÍÔ½´ó¡£

µã»÷”Save”°´Å¥ÉúÑÄÉèÖá£

Èý¡¢²âÊÔ¸ºÔØƽºâЧ¹û

ÏÖÔÚ £¬ÎÒÃÇ¿ÉÒÔͨ¹ý·¢ËÍÇëÇóÀ´²âÊÔ¸ºÔØƽºâµÄЧ¹û¡£»á¼ûNginx Proxy ManagerµÄÓòÃû £¬²¢Ê¹ÓÃ֮ǰÉèÖõÄÊðÀíЧÀÍÓòÃûºÍ·¾¶¾ÙÐвâÊÔ¡£ÀýÈç £¬ÈôÊÇÊðÀíЧÀ͵ÄÓòÃûÊÇproxy.example.com £¬Â·¾¶ÊÇ/api £¬¿ÉÒÔͨ¹ý»á¼ûhttp://proxy.example.com/apiÀ´²âÊÔ¡£

ƾ֤ÉèÖõĸºÔØƽºâÕ½ÂÔ £¬ÇëÇóÓ¦¸Ã»á±»·Ö·¢µ½¶à¸öºó¶ËЧÀÍÆ÷¡£

×ܽá

Nginx Proxy ManagerÊÇÒ»¸öÇ¿Ê¢µÄ¹¤¾ß £¬¿ÉÒÔ×ÊÖúÎÒÃÇʵÏÖ·´ÏòÊðÀíºÍ¸ºÔØƽºâ¡£Í¨¹ýÉèÖÃNginx Proxy Manager £¬ÎÒÃÇ¿ÉÒÔÇáËɵؽ«ÇëÇó·Ö·¢¸ø¶à¸öºó¶ËЧÀÍÆ÷ £¬ÒÔÌá¸ßϵͳµÄ¿ÉÓÃÐÔºÍÐÔÄÜ¡£

ÒÔÉÏÊÇʹÓÃNginx Proxy ManagerʵÏÖ·´ÏòÊðÀíµÄ¸ºÔØƽºâÕ½ÂÔµÄÏêϸ°ì·¨¡£Ï£Íûͨ¹ýÕâƪÎÄÕ £¬¶ÁÕßÄܹ»Ã÷È·ÔõÑùʹÓÃNginx Proxy ManagerÀ´ÊµÏÖ·´ÏòÊðÀíºÍ¸ºÔØƽºâ £¬²¢ÇÒÄܹ»Æ¾Ö¤ÏÖʵÐèÇó¾ÙÐÐÏà¹ØÉèÖá£

´úÂëʾÀýÎÒÕâÀïÎÞ·¨Ìṩ £¬¿ÉÊÇÄã¿ÉÒÔƾ֤ÉÏÊö°ì·¨ºÍNginx Proxy ManagerµÄÎĵµÀ´Íê³ÉÉèÖúÍÏà¹ØµÄ´úÂë±àд¡£×£ÄãÀֳɣ¡

ÒÔÉϾÍÊÇʹÓÃNginx Proxy ManagerʵÏÖ·´ÏòÊðÀíµÄ¸ºÔØƽºâÕ½ÂÔµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是博ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是博ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ