1
There is this server to which I have remote desktop access. It's Windows machine and I use it to deploy code to staging server (which also runs on this machine) so we can test our pull-request before merging them to develop branch. Right now I'm doing it manually, but I already wrote small batch script which allows me to automate the process. So basically now I'm only have to connect to this computer and run this script providing some params to it. It's still a pain, and I want to setup slash commandhttps://api.slack.com/slash-commands in our team's slack to be able to trigger this script execution right from our team slack channel. So, to do it I need a web server accessible from the outer web to send my POST request with params there. But a. this machine is behind our work vpn b. There's no server there that can accept such request
I'm a little bit lost. Event if I could setup some server there to listen to this request, it still wouldn't be accessible to outer Internet right? or would it? But then wouldn't it be security risk to expose such endpoint for POST requests?
So I have this vague idea which might be silly, but I just want someone experienced in these things to tell me where to look, to give me direction. So what I'm thinking, maybe I could setup some service (like daemon) which would be running on this remote computer constantly and checking some other server every now and then. Like pinging some server on the Internet with frequent GET requests. This other server would be public server accesible to my slack integration. It would receive POST request with my params from slack and store it. Then when next GET from my remote comuter would come it would answer with what I sent to it.
This is probably very stupid idea, but that's the only one that I have. Any suggestions? Comments?