Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples update - use behind proxy #287

Open
jbbeauf opened this issue May 7, 2020 · 0 comments
Open

Examples update - use behind proxy #287

jbbeauf opened this issue May 7, 2020 · 0 comments

Comments

@jbbeauf
Copy link

jbbeauf commented May 7, 2020

Hello,

New example proposal: behind a proxy, useful for corporate usage

// With ES5
var JiraApi = require('jira-client');
var rp = require('request-promise');

// Initialize
var jira = new JiraApi({
  protocol: 'https',
  host: 'jira.somehost.com',
  username: 'username',
  password: 'password',
  apiVersion: '2',
  strictSSL: true,
  promise = rp.defaults({
    "proxy": "http:/proxyUsername:[email protected]:8080" // note for proxyPasswor: replace all special characters with unicode hexs
  })
});

....

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants