Skip to content

Conversation

@authorNari
Copy link

単純なNginx.returnは処理を返さない気がします。lambdaで囲んでやる必要がありそうです。

(実は動かせていないので合っているか不安なんですけど…)

@hsbt
Copy link
Owner

hsbt commented Mar 23, 2016

あれ... 動いていた気がするんですがせっかくなので確認しますね...

@authorNari
Copy link
Author

お暇な時によろしくお願いします…!

@hsbt
Copy link
Owner

hsbt commented Mar 25, 2016

mruby-base64 を入れた ngx_mruby で http://localhost:3000/?expires=1483110000&signature=BgUv73Idig2tdwo+WHFwxSdwlBI=&publickey=nginx を打って試してみたのですが、この時は Success, signature をいじると 403 と、動いているように見えました...

ただ、lambda で囲むというのはその通りだと思うので、なぜ動いているのが自分にもよくわからなくなってきました。

@authorNari
Copy link
Author

試していただいてありがとうございます 🙇

if signature == arg_signature
Nginx.echo "Sucess"
else
Nginx.return Nginx::HTTP_FORBIDDEN
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signatureをいじるとココの部分に到達すると思うので、これでステータスが戻るのは正常に見えます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants