{"action":"created","issue":{"url":"https://api.github.com/repos/inconshreveable/ngrok/issues/61","repository_url":"https://api.github.com/repos/inconshreveable/ngrok","labels_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/61/comments","events_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/61/events","html_url":"https://github.com/inconshreveable/ngrok/issues/61","id":23677516,"number":61,"title":"Add support for project-wise config files and default tunnels","user":{"login":"larrybolt","id":803296,"avatar_url":"https://avatars.githubusercontent.com/u/803296?v=3","gravatar_id":"","url":"https://api.github.com/users/larrybolt","html_url":"https://github.com/larrybolt","followers_url":"https://api.github.com/users/larrybolt/followers","following_url":"https://api.github.com/users/larrybolt/following{/other_user}","gists_url":"https://api.github.com/users/larrybolt/gists{/gist_id}","starred_url":"https://api.github.com/users/larrybolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrybolt/subscriptions","organizations_url":"https://api.github.com/users/larrybolt/orgs","repos_url":"https://api.github.com/users/larrybolt/repos","events_url":"https://api.github.com/users/larrybolt/events{/privacy}","received_events_url":"https://api.github.com/users/larrybolt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-12-03T21:58:52Z","updated_at":"2016-03-12T02:50:04Z","closed_at":"2016-03-12T02:50:04Z","body":"The few features I miss is the ability to have project-wise config files containing the tunnels that need to be initiated for the project.\r\n\r\nFor instance, in my project directory I have next:\r\n```YAML\r\n# ngrok config, load using: ngrok -config ngrok.yaml start default\r\ntunnels:\r\n    default:\r\n        hostname: \"project.example.com\"\r\n        proto:\r\n            http: 80\r\n```\r\nWhat currently stops me to do this is that:\r\n* You seem to be unable to load both the `~/.ngrok` config file and a custom one, and allowing my personal auth_token to appear in my repo is something I'd rather not do.\r\n* I still always have to specify the tunnel, and there is not 'default' choice.\r\n* Getting the public forwarding url is difficult unless specifying, for which you again need to be able to set your auth_token, and using apache vhosts with a dynamic hostname like that is a bit difficult.\r\n* Wildchars in custom domain names would make this soo much easier, eg.: `*.dev.example.com`\r\n\r\nMy current fix:\r\n```bash\r\nalias ngrok=\"ngrok -authtoken $(cat ~/.ngrok |cut -d' ' -f2-)\"\r\nalias localtunnel=\"ngrok -config ngrok.yaml start default\"\r\n```\r\nThe only drawbacks are I need to both setup a vhost (which in my case is just a symlink, but that depends on how your development environment is setup, and add the hostname to my ngrok dashboard, which so far is the main annoyance for me."},"comment":{"url":"https://api.github.com/repos/inconshreveable/ngrok/issues/comments/195645407","html_url":"https://github.com/inconshreveable/ngrok/issues/61#issuecomment-195645407","issue_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/61","id":195645407,"user":{"login":"inconshreveable","id":836692,"avatar_url":"https://avatars.githubusercontent.com/u/836692?v=3","gravatar_id":"","url":"https://api.github.com/users/inconshreveable","html_url":"https://github.com/inconshreveable","followers_url":"https://api.github.com/users/inconshreveable/followers","following_url":"https://api.github.com/users/inconshreveable/following{/other_user}","gists_url":"https://api.github.com/users/inconshreveable/gists{/gist_id}","starred_url":"https://api.github.com/users/inconshreveable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inconshreveable/subscriptions","organizations_url":"https://api.github.com/users/inconshreveable/orgs","repos_url":"https://api.github.com/users/inconshreveable/repos","events_url":"https://api.github.com/users/inconshreveable/events{/privacy}","received_events_url":"https://api.github.com/users/inconshreveable/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T02:50:04Z","updated_at":"2016-03-12T02:50:04Z","body":"ngrok 2.x supports this by allowing you to specify multiple configuration files so that you can have project-level configs and global configs.\r\n\r\nwon't fix for 1.x"}}