10æã§å ¥ç¤¾ãã¦åå¹´ãçµã¡ã¾ãããstreampackãã¼ã ã®minsuã§ãã ãããªãå¯ããªã£ã¦ãã¦ç§ãæãã¾ãããæ¥ã«æ±äº¬ã«å¼ã£è¶ãã¦ããç§ã¯ã¾ã å¬æãæãã¦ãªãã®ã§ããå°ãç·©ããã«æ°æ¸©ãå¤åãã¦æ¬²ããã£ãã§ãã ä»åã®è¨äºã¯å æ¥API Gateway + Lambdaã触ããã¨ããã£ããããèªåç¨ã«ã¾ã¨ãããã®ã§ãã /{foo}/{bar}ã®ãããªãã¹ãã©ã¡ã¼ã¿ãGET,POSTãã©ã¡ã¼ã¿ã渡ããã¨ããã¨ããã ãããã³ã°ãã³ãã¬ã¼ããè¨å®ããæ¹æ³ãããã¾ããLambdaãããã·çµ±åã使ãã¨ãããªã«è¨å®ãã¦ããã¦æ¥½ã§ããã Lambda é¢æ°ã®ä½æ Lambdaé¢æ°ãä½æãã¾ãã é¢æ°åã¯params-testã¨ãã¾ããã ã¢ã¯ã»ã¹æ¨©éã¯ç¨éã«æ²¿ã£ã¦è¨å®ãã¦ãã ããã API Gateway ä½æ APIã®ä½æãã API ãä½æãã¾ããAPIåã¯URLã«åæ ããã¾ããã ãªã½ã¼ã¹
ãã¹ãããã©ã¡ã¼ã¿ã¼ãåå¾ãã localhost:3000/post/12345/ ã«ã¢ã¯ã»ã¹ããæã«12345ã®é¨åãåå¾ãããã
ãã¤ãã®ããã«å人çãªã¡ã¢ URLã«ãã©ã¡ã¼ã¿ãä»ä¸ããéã®åä½ hoge.jp ã¸ã®ã¢ã¯ã»ã¹ã foo.jp ã¸é£ã°ãã¨æ³å® é¢é£ï¼Nginxã®ãªãã¤ã¬ã¯ãè¨å®ã®ã¡ã¢ 1. ä½ãç¡ã location / { rewrite ^(.*)$ http://foo.jp redirect; } hoge.jp?bar -> foo.jp/?bar ã¨ãªã 2. $request_uri location / { rewrite ^(.*)$ http://foo.jp$request_uri redirect; } hoge.jp?bar -> foo.jp/?bar?bar ã¨ãªã 3. $uri location / { rewrite ^(.*)$ http://foo.jp$uri redirect; } hoge.jp?bar -> foo.jp/?bar ã¨ãªã 4. $uri$
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}