reorganize config info
check the nonce and uri
Merge pull request #2 from sczi/check_nonce_uri

Check nonce uri