Does anybody know how to set up a Julia repo using https://forgejo.org/ ?
This is for internal company projects. I want:
- to run the tests
- build the documentation
- get code coverage
Does anybody know how to set up a Julia repo using https://forgejo.org/ ?
This is for internal company projects. I want:
I’ve been self-hosting on Gitea for a while, and have been meaning to move over to Forgejo! It’s been stuck on my to-do list for a few months now…
Docker compose is a pretty painless way of going about it. Install Docker from the usual suspects (i.e. your distro package manager), then write a compose.yaml file configured as you’d like. There are a few bits to select from (Postgres vs. MySQL, etc.) but they’re mostly in the noise.
You’ll also want to expose the Docker network. The port that’s bound in the compose.yaml file can be bound on localhost.
You then want to run a reverse proxy. I use nginx, but Caddy seems to be where it’s at now - Caddy manages SSL certs for you, so you don’t have to run a separate certbot daemon. Basically, that just exists to forward incoming requests on port 80 to port 443 (to move HTTP connections to HTTPS), then to link a subdomain (e.g. https://git.your.website) to the local Forgejo port. You might have to enable a few flags in the configuration here to get it all working.
If you are hosting on a local network, you can just edit /etc/hosts to bind the domain - but mind that systemd-resolved might try to trample it. I’ve just registered a domain name via Cloudflare for cheap, then run ddclient to update my dynamic DNS via Cloudflare.
Forgejo has actions as well, which are configured via YAML. The user guide is here. You can run generic bash commands pretty easily.
Please let me know how you get on! I’ve just moved houses, so my internet at home won’t switch on until Monday (and so I can’t link you my site for an example at the moment…), but I’ll be able to send you more detailed config tonight (UK time).
Thank you so much!
Today I created my first Julia repo on Forgjo and set up a web server in a virtual machine to host the documentation. I am still struggling with the certificate for https. Will continue tomorrow. Using nginx in the moment, but will have a look at Caddy.
+1 for caddy
I am using it for my homelab (= random assort of self-hosted services) and it is so easy and pleasant to work with. Https is automatic e.g.. A caddyfile can be as simple as (and in fact this is what I started with)
forge.mydomain.example {
reverse_proxy localhost:12345
}
and that is a fully functional reverse proxy setup which supports https (getting a TLS certificate from LetsEncrypt, renewing it etc).
Ooh, that’s nice. Switching to Caddy has also been on my list of things to do… will have to get this up and running over the weekend!