question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github Enterprise support

See original GitHub issue

For a Github Enterprise server hosted behind a firewall at https://git.example.co/, what changes need to be made use it with a self-hosted version of github1s?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
Shegoxcommented, Feb 14, 2021

One additional thing, which I noticed when setting it up for GitHub Enterprise Server that using GitHub pages is probably not the best idea for hosting because of two reasons:

  • It would be hosted under a different path: e.g. pages.github.example.com/github1s/$ORG/$REPO and this requires an adjustment in https://github.com/conwnet/github1s/blob/master/src/vs/github1s/util.ts#L18 E.g.:

      // remove path prefix (github1s) added by hosting on GitHub pages
      const pathname = urlObj.pathname.replace(/^\/github1s/,"");
      const parts = pathname.split(/\/|%2F/g).filter(Boolean);
    
  • hosting it under GitHub pages on an Enterprise Server would mean that the indexeddb (at least how far I understood it) could be accessed from any other GitHub page, meaning it would be quite easy to steal the tokens. As GitHub Enterprise doesn’t support custom CNAMEs (like github.com) one should probably host it under a separate, isolated domain name and some static webserver (e.g. AWS S3 bucket).


Another more generic idea would be to allow github1s to open urls in the form of github1s.com/$hostname/$ORG/$repo and adding support for multiple token/server. Then even Enterprise users could use github1s, even behind a firewall as requests are sent from the browser directly to the Enterprise Server and don’t go over github1s.

3reactions
Siddhant-K-codecommented, Jun 18, 2021

https://github.com/conwnet/github1s/blob/master/extensions/github1s/src/client.ts#L11 and API url in the file https://github.com/conwnet/github1s/blob/master/extensions/github1s/src/api.ts

These URLs aren’t valid anymore. nor can I find an api.ts file in the repo. What’s the new location for these settings?

you will get all your answers at: https://github.com/conwnet/github1s/tree/master/extensions/github1s/src/interfaces

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Enterprise Support
Welcome to the GitHub Enterprise Support Portal! To learn more about the nature of support we provide, please see the GitHub Enterprise website...
Read more >
Premium Support - GitHub
Enterprise Premium Support hours 24x5 24x7 Initial response – Urgent <8 hours 30 mins (includes initial troubleshooting) Initial response – High <8 hours 4 hours
Read more >
GitHub Enterprise Server - GitHub Support
Get help with GitHub Enterprise Server ... GitHub Enterprise Server licensing and support is now managed through a GitHub.com enterprise account. An enterprise...
Read more >
About the Support Portal - GitHub Support
As a GitHub Enterprise Cloud or GitHub Enterprise Server customer your capabilities in the support portal depend on your role in your enterprise...
Read more >
About GitHub Premium Support - GitHub Enterprise Cloud Docs
To sign up for GitHub Premium Support or upgrade your plan, you can contact our account management team or call +1 (877) 448-4820....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found