Live data from Hacker News

Self-Hosting Git

peppe.rs

61–70 of 71 posts

Re: Self-Hosting Git

#61

Interesting! recently I started self-hosting my personal repos using gogs ( https://gogs.io/ ) it’s really lightweight, and I can evn run it in an arm64 box (the same one I use for my NAS). If you’re looking for a more complete yet still lightweight alternative, give gogs a look.

Which arm64 box do you use? People say I'm a sucker for these things but I like to think of myself as a collector :)

Re: Self-Hosting Git

#62
post #56

Earlier quoted context omitted.

(nearly) all my projects live in an account on uberspace.com. This is a German shared hosting provider with quite great offerings. You get a shell (ok, no root/sudo because shared hosting) with 10GB space, databases and what not. A vibrant community providing installation resources for a massive amount of tooling: https://lab.uberspace.de/ I am in no way affiliated to them just a happy customer for 10+ years now. btw…

Installation is the easy part. The hard part is remembering to update all of your software, and making sure you do it fast enough in case there is a zero-day. The worst part is discovering that you installed a simple app and forgot about it; and now hackers got in, encrypted your files and database, and now want a ransom.

And then it gets easy again: you recover from your backups :)

Re: Self-Hosting Git

#63

Interesting! recently I started self-hosting my personal repos using gogs ( https://gogs.io/ ) it’s really lightweight, and I can evn run it in an arm64 box (the same one I use for my NAS). If you’re looking for a more complete yet still lightweight alternative, give gogs a look.

What arm 64 box do you use? RPi4? I'm interested in having my own NAS but I want it to be seamless as possible, and I'm not sure if a raspberry pi would achieve that. That being said, I also don't want to spend too much lol... Perhaps I'm asking for much here

I have a rockpro64 with a 4xsata pcie card.

Re: Self-Hosting Git

#64
post #35

Recently I just finished tearing down all my self-host services. Things facing the public internet might be convenient, but heck if I want to face that security nightmare in an ongoing way. All my git repos now live in a "git" folder I share amongst my fileserver and other machines with syncthing, hosting only the bare repos. If I need pull requests or issue tracking, it's got to be something that goes with the repos…

What do you think about a service like I'm building https://cloudblast.network (Opens Apr 1) Do you think it's something you'd try?.. Makes it easy to use self-hostable software, Gogs for example. Combines discovery, hosting and backup. Updates are automatic.

Re: Self-Hosting Git

#65
post #35

Recently I just finished tearing down all my self-host services. Things facing the public internet might be convenient, but heck if I want to face that security nightmare in an ongoing way. All my git repos now live in a "git" folder I share amongst my fileserver and other machines with syncthing, hosting only the bare repos. If I need pull requests or issue tracking, it's got to be something that goes with the repos…

If you’re the only user, you can avoid almost all the security issues by not exposing any HTTP ports to the internet, and instead accessing any web interfaces through SSH port forwarding. For example: 1. Run Gitea on your server, but make it only available on localhost. 2. Connect to your server via SSH, and use the -L flag to forward the port that Gitea is using e.g. ssh -L 8888:localhost:8888 me@myserver.com 3. Acc…

You could also use wireguard for this sort of thing and keep everything on a VPN.

Re: Self-Hosting Git

#66
post #62
post #56

Earlier quoted context omitted.

Installation is the easy part. The hard part is remembering to update all of your software, and making sure you do it fast enough in case there is a zero-day. The worst part is discovering that you installed a simple app and forgot about it; and now hackers got in, encrypted your files and database, and now want a ransom.

And then it gets easy again: you recover from your backups :)

And hard again as you now have to change any compromised credentials, figure out how they got in and patch it.

Re: Self-Hosting Git

#67
post #64
post #35

Recently I just finished tearing down all my self-host services. Things facing the public internet might be convenient, but heck if I want to face that security nightmare in an ongoing way. All my git repos now live in a "git" folder I share amongst my fileserver and other machines with syncthing, hosting only the bare repos. If I need pull requests or issue tracking, it's got to be something that goes with the repos…

What do you think about a service like I'm building https://cloudblast.network (Opens Apr 1) Do you think it's something you'd try?.. Makes it easy to use self-hostable software, Gogs for example. Combines discovery, hosting and backup. Updates are automatic.

My thoughts:

Does this service allow me to deploy the apps on my own a VPS and/or dedicated server?

Does this service offer to host the apps I deploy?

Does this service allow me to specify a docker container?

There should be a full list of supported deployable apps.

Can I use forks of the available apps, or deploy from a git repo?

Do I get analytics (cpu, ram, visitors)?

[Assuming clear answers on earlier questions] So I can deploy a ghost blog from my phone? Maybe this could be elaborated.

Any plans to release a video example of the service's usage?

Re: Self-Hosting Git

#68
post #42

Earlier quoted context omitted.

I wouldn't. The last time I tried to use their software I asked if anyone had any insights with how to use it in Docker (much of it is written in Python) and the response I got was cringe worthy. I'm just some person on the internet so take that for what you will.

All of the sr.ht software is packaged for Alpine, so you can just install and configure them in your Docker container, the same way you would install and configure them in a VM. There's no push-button magic for it, presumably because SourceHut the company (ie. Drew) isn't interested in running it in containers, but nothing is stopping you from trying. It's different from most Python software in that you're expected t…

I did figure this out, but I decided not to run SourceHut mainly because of Drew's comments in the channel.

> (ie. Drew) isn't interested in running it in containers, but nothing is stopping you from trying.

Yes, he is. I asked in SourceHut's Freenode channel and Drew's comments were literally, "we don't take kindly to your kind around here, don't ask again."

Re: Self-Hosting Git

#69
post #67
post #64

Earlier quoted context omitted.

What do you think about a service like I'm building https://cloudblast.network (Opens Apr 1) Do you think it's something you'd try?.. Makes it easy to use self-hostable software, Gogs for example. Combines discovery, hosting and backup. Updates are automatic.

My thoughts: Does this service allow me to deploy the apps on my own a VPS and/or dedicated server? Does this service offer to host the apps I deploy? Does this service allow me to specify a docker container? There should be a full list of supported deployable apps. Can I use forks of the available apps, or deploy from a git repo? Do I get analytics (cpu, ram, visitors)? [Assuming clear answers on earlier questions]…

1 > Does this service allow me to deploy the apps on my own a VPS and/or dedicated server?

2 > Does this service offer to host the apps I deploy?

3 > Does this service allow me to specify a docker container?

4 > There should be a full list of supported deployable apps.

5 > Can I use forks of the available apps, or deploy from a git repo?

6 > Do I get analytics (cpu, ram, visitors)?

7 > [Assuming clear answers on earlier questions] So I can deploy a ghost blog from my phone? Maybe this could be elaborated.

8 > Any plans to release a video example of the service's usage?

ANSWERS

1. On the roadmap, you'll have the ability to automatically deploy your apps to several locations (VPS, AWS, home servers, etc.)

2. Absolutely. Nearly any web app can be wrapped with a definition file and added to your personal library and shared with others. I find wrapping an existing app takes less than an hour.

3. Yes. Apps are docker containers wrapped with a definition file.

4. For sure! Once the service launches there will be a free tier with a fully searchable index.

5. Eventually you'll be able to choose versions of apps and import from repos.

6. That's an interesting idea, cpu, ram, disk use and bandwidth are tracked, number of visits could be too. I could see this being available as a power user option.

7. Yes. Would look like opening the browser on your phone, logging into your account and clicking the Ghost graphic. Now you have a URL to your new public instance of Ghost.

8. There's an instant use free tier but we're considering also making a short 60 second "Intro to using Cloudblast" video to jumpstart new users.

Re: Self-Hosting Git

#70
post #66
post #62

Earlier quoted context omitted.

And then it gets easy again: you recover from your backups :)

And hard again as you now have to change any compromised credentials, figure out how they got in and patch it.

Therefore I don't reuse credentials.
Post reply on HN