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

registry: force https urls instead of git #1361

Closed
RickVanLouis opened this issue Dec 13, 2016 · 7 comments
Closed

registry: force https urls instead of git #1361

RickVanLouis opened this issue Dec 13, 2016 · 7 comments

Comments

@RickVanLouis
Copy link

RickVanLouis commented Dec 13, 2016

Hey Forum-Members,

I'm very desperate cause of trying to install Adapt for years I think. My problem is our Proxy-Server. I have to set up Adapt for our E-Learning-Team and it wasn't that difficult at home (without proxies). But in my office it is impossible to use the Framework I want to work with. I successfully installed the Authoring Tool, but I need to style the courses in our CI so I want to use the Framework. I installed all necessary tools (grunt/adapt/npm/git/node) and configurated the proxy options.

  • For NPM: npm config set proxy http://username:[email protected]:port &
    npm config set https-proxy http://username:[email protected]:port. First question: Do I need to also use npm config set http-proxy http://username:[email protected]:port ?

  • For GIT: git config --global http.proxy http://proxyuser:[email protected]:8080

  • As enviroment variable: set http_proxy=http://username:pass@hostname:port & set https_proxy=https://username:pass@hostname:port

With this settings I was able to install GIT, NPM, Grunt and adapt. But if I run adapt create course i got following Error:
capture

status Code = 407 means Proxy authentication required. Are there any other Proxy-Settings I have to change?

thanks a lot for any help :)

EDIT:
I also did the registries like this:
npm config set registry "http://registry.npmjs.org/"

@moloko
Copy link
Contributor

moloko commented Dec 13, 2016

Hi @RickVanLouis

I don't think any of us in the core team are behind a proxy so this isn't a problem we've ever had to solve.

There's been a few posts on the forums about this: https://community.adaptlearning.org/mod/forum/search.php?id=2&search=proxy

Also, if $ adapt create course is not working you could try the manual setup... although you may still struggle with the $ adapt install part - if you do you could just set up all your plugins manually, you'd just need to create folders called 'components', 'extensions', 'menu' and 'theme' within your src folder and manually download the theme, menu, components and extensions you want to use into them.

Finally, you say you have got the authoring tool set up and working - why not kick off the development of a course there and then export it so that you can use it with the Framework?

@RickVanLouis
Copy link
Author

Hey @moloko,

thanks for your quick response. Nice to know that this isn't a casual Problem you know. Unfortunately your Link "manual setup" isn't working.

This workaround is new to me so thank you very much for this suggestion. This solution means I have to create my course with the Authoring Tool and add Plugins later in the Framework. Cause some Plugins aren't working in the AT.

I will test your suggestion and give you Feedback later.

Have a nice day and kind regards :)

@moloko
Copy link
Contributor

moloko commented Dec 14, 2016

@moloko
Copy link
Contributor

moloko commented Dec 15, 2016

Seeing as we do have a few users behind a proxy server it would be great if there some way of addressing this in the installation guidelines and the adapt-cli itself

@RickVanLouis
Copy link
Author

At first no problem :)

Further I created following thread earlier last week https://community.adaptlearning.org/mod/forum/discuss.php?d=1774. And I got workarounds to "solve" this Problem. Unfortunately its not perfect but it works.

To be honest: I'm working for a big company with some guys in a e-learning and innovation team. We are searching for new technologies to create e-learning courses. And we felt in love with Adapt-Learning. We hope to get some Servers to setup this tool for all oure team-members. But this journey takes so long cause of IT-Security. At the moment we are trying to do this all "offline" with the Framework or Authoring Tool. We want to implement this tool in our company to use it more often.

We want to create easy courses on a easy way.

Cheers from Germany :)

@moloko
Copy link
Contributor

moloko commented Jan 24, 2017

just adding a note that this has worked for a few people: https://stackoverflow.com/questions/1722807/git-convert-git-urls-to-http-urls

@hbaileylxd
Copy link

hbaileylxd commented Mar 6, 2017

@RickVanLouis I am behind university proxy so I have had troubles before. Rewriting the github access using...
git config --global url.https://github.com/.insteadOf git://github.com/

worked to fix many of my problems so please try this.

@oliverfoster oliverfoster changed the title Using Adapt Learning behind Proxys force https urls instead of git from the plugin registry Jun 28, 2017
@oliverfoster oliverfoster changed the title force https urls instead of git from the plugin registry registry: force https urls instead of git Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants