So I have a node.js app that is running the Smartthings node SDK and is hosted locally.
Then I have an AWS EC2 NGINX server, nested in a Docker container on port 1234. The NGINX server has an SSL set up using Lets Encrypt.
The local node.js app is connecting to the AWS NGINX server using an ssh tunnel.
The NGINX config looks like this. Where the webhook url for the SmartApp would be https://example.com/tunnel/
The issue is that when trying to authorize the SmartApp, I get a “Forbidden - failed verifySignature” error.
When changing the local node app to listen to a ngrok tunnel, the SmartApp will authorize successfully. I am not sure if there is some issue on Smartthings side, or if I’m missing something.
Is it just me or does reading the docs for this stuff feel like 3 different projects all incomplete but all smashed together in a really incomprehensible way?
Has anyone had any luck as of yet or can share some wisdom? I am weary.
[edit]
There is this conversation RE HomeAssistant which suggests that there might be something to do with SSL but…who knows?
Has anyone been able to figure this out? With groovy apps going away I’m looking at my options and if I have to self host my apps I would like them behind nginx.