Nginxã§ã¯, serverã³ã³ããã¹ãã®locationã³ã³ããã¹ãã«ããã¦, proxy_passãã£ã¬ã¯ãã£ããå©ç¨ãããã¨ã§ä»»æã®ãã¹ãã«ã¢ã¯ã»ã¹ã転éãããã¨ãã§ãã¾ã. ä¾ãã°, serverã³ã³ããã¹ãã«ããã¦, location / { proxy_pass http://127.0.0.1:5000; } ã¿ããã«æ¸ãã¦ãããã°, localhostã®5000çªãã¼ãã«ã¢ã¯ã»ã¹ã転éãããã¨ãåºæ¥ã¾ã. Webãµã¼ãã¹ã§ã¯, ããããæãã§Nginxã443çª(HTTPS)ã80çªãã¼ã(HTTP)ã§åããã¢ã¯ã»ã¹ã5000çªãã¼ããªã©ã§åãã¦ããWebã¢ããªã±ã¼ã·ã§ã³ã«è»¢éãã¦ãã訳ã§ã. ã§, ãã®proxy_passãã£ã¬ã¯ãã£ãã¯, IPããã®ã¾ã¾æ¸ãã®ã§ã¯ãªã, 次ã®ããã«ãã¡ã¤ã³ãæ¸ããã¨ãã§ãã¾ã. location / { proxy_pass http
{{#tags}}- {{label}}
{{/tags}}