I have a rails site with an "api" subdomain. The routes on my local machine look like this:
http://mysite.dev #<-- normal web stuff
http://api.mysite.dev #<-- my api
How can I map these two subdomains? This is my ngrok config file, but the api endpoint seems to point to the base domain.
tunnels:
web:
subdomain: "my-project"
proto:
http: mysite.dev:5000
api:
subdomain: "api.my-project"
proto:
http: api.mysite.dev:5000