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

Support for self-hosted Gitlab #57

Closed
bekir-murat opened this issue Feb 21, 2018 · 3 comments
Closed

Support for self-hosted Gitlab #57

bekir-murat opened this issue Feb 21, 2018 · 3 comments

Comments

@bekir-murat
Copy link

We host our own instance of Gitlab.

I guess this is just a matter of replacing all occurrences of gitlab.com in the code by the custom gitlab url.

But there is something that prevents me from trying this : given that gitlab requires a redirect_uri for oauth authentication, it means that gitlab has to be able to access the IP where Integram runs. Which is not the case in our infrastructure.
For Integram to work in our setup, we would need to use gitlab access tokens instead of oauth, which requires quite a lot of changes.

@requilence
Copy link
Owner

Hey! Actually this thing was implemented from the begining.
You just need to follow the instructions that @gitlab_bot sends you on /start command:

  1. Add the provided webhook URL for your self-hosted gitlab repos
  2. When some action happens(issue created, something commited etc.) you will receive the Telegram message from @gitlab_bot
  3. When you will try to interact with this issue/commit inside the Telegram chat you will be asked to create the new OAuth app inside your Gitlab instance and provide all details for the bot

Let me know if you will have any questions or troubles by the way.

@KatSick
Copy link

KatSick commented Feb 22, 2018

We using self host GitLab and all works like a charm

@bekir-murat
Copy link
Author

bekir-murat commented Feb 22, 2018

Cool, thanks for your answers.
So, my understanding is that you use the webhook connector for this instead of the gitlab one. Is that correct ?
Will try to make it work and let you know how it goes.

UPDATE: Ok, it works great on my hosted version with the gitlab plugin. Thanks for your help !

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

3 participants