drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
423 stars 122 forks source link

Unable to proxy to a https server #144

Open kjatti opened 8 years ago

kjatti commented 8 years ago

The current released version 0.2.x cannot proxy to a https target, this is because of changes to the underlying 'http-proxy' package. This issue is fixed in the master but there has been no release done in more than a year.

bjornharrtell commented 8 years ago

Forked and released as https://www.npmjs.com/package/grunt-connect-proxy2.

isamulenko commented 7 years ago

+1

oklymenk commented 7 years ago

https://github.com/bjornharrtell/grunt-connect-proxy2 is a 404

bjornharrtell commented 7 years ago

grunt-connect-proxy2 is only used as the new package name, the fork can be found at https://github.com/bjornharrtell/grunt-connect-proxy.

drewzboto commented 7 years ago

hi! sorry i've pretty much ran out of time to maintain the project since becoming a father. I'm happy to open up admin access to this project and the npm package to let everyone keep it going. Let me know if that's of interest and i'll take care of that. Also happy to migrate this off to another repo as needed

bjornharrtell commented 7 years ago

You are also father to your code. :)

Joke aside, while I don't think I got time or need for proper maintenance I'm willing put some time into upgrading the deps and publishing a new version if not for no other reason to be able to obsolete my fork.

ext commented 7 years ago

I use this package both for personal projects and at work. Would really like to see some updates, especially with HTTPS.

I understand that you might not have the time to properly maintain it yourself and as you say the best course of action would probably be to let someone take over maintenance over it.

@bjornharrtell seems like a good candidate. I would also volunteer but I'm not yet familiar with the inner workings of this code (could if needed).

Anyway, thank you for writing this package in the first place.

jmfee-usgs commented 7 years ago

I have the same issue, neither the https or secure options seem to have any effect, but found a work around by using this in your proxy config:

protocol: 'https:'

For example:

{
  context: '/url/to/proxy',
  host: 'httpshost.com',
  port: 443,
  protocol: 'https:',
  headers: {
    host: 'httpshost.com'
  }
}
lrkwz commented 6 years ago

I successfully run grunt-connect-proxy2 with the following config https://stackoverflow.com/a/48035737/509565

Thank you @bjornharrtell