How to run CloudFlare Argo client ("cloudflared") on Heroku? - heroku

How would you recommend running CloudFlare's Argo client cloudflared on Heroku?
In particular, how would you lock down the web dyno's $PORT so it rejects HTTP traffic that does not originate from the local cloudflared client?

Related

How to host a website on Heroku without using heroku's own http router?

I need to host a website on Heroku, but I need to have direct access to the HTTP traffic without Heroku's own http router meddling in.
That's not possible.
Heroku doesn't provide a full server infrastruture.
It's rather a limited platform to host HTTP services.

How do I get Google Cloud load balancer to set a cookie via a socket.io server it's proxying?

I'm running a Google Cloud HTTPS load balancer in front of 2 Compute Engine VM instances that are each running a socket.io server on port 80. They work fine and are reachable from my HTML/JS socket.io client that I'm running locally.
I have set my Google Cloud load balancer to use Session Affinity with "Generated Cookie". According to the docs, this should set a cookie named GCLB on the client. The cookie never gets set in my client, why?
I think my issue might be that I'm not really serving the client through the load balancer (or on google at all), but serving it locally, once this is a real client it will sit on a CDN somewhere. I am using a hostname locally that is on the same domain name as the load balancer. Meaning, my socket.io html client is at http://local.mydomain.com:8000/ and it connects to my socket.io server/load balancer which lives at https://io.mydomain.com/ note: ssl on server only
Any ideas as to how I can get the cookie set, or do I need to handle this differently?

How can i get http based heroku domain

I created a new heroku nodejs app.
And i received the domain name with HTTPS.
I am using an API where service provider provides only http based requests.
Now the question is can i run heroku app on http?
Your Heroku app will respond to both ports 80 (http) and 443 (https) on the herokuapp.com domain you were given. So if your app is called myapp, you can access it via http://myapp.herokuapp.com and https://myapp.herokuapp.com

Can I deploy a server to Heroku without a client?

I have built a backend server application without a frontend to it. Can I still deploy it to heroku ?
Sure. Heroku only hosts apps.
As long as your backend server application listens on a specified port, and is able to receive and respond to HTTP requests, you can host it on Heroku.

Connecting to server behind VPN with Heroku and Ruby

I'm writing an application in Ruby/RoR that will be hosted on Heroku.
One of its requirements is that it connects to an (Active Directory) authentication server which is behind a Sonicwall VPN.
How can I establish this VPN authentication using Ruby to access this server?
Heroku is just a service built on top of EC2 that manages deployment using a linux env. You don't have root access on on which means you can connect out to any service using any TCP protocol. But you can only listen for HTTP connections. Unfortunately this rules out setting up VPNs and SSH tunnels. You can do this on Amazon EC2.

Resources