aboutsummaryrefslogtreecommitdiff
path: root/content/en
diff options
context:
space:
mode:
authorJulien Dessaux2020-11-29 16:08:17 +0100
committerJulien Dessaux2020-11-29 16:08:27 +0100
commit6cf52e30ab8f694acfedb6a87b2aa264cd0f6db5 (patch)
tree17be1727e03dbf0b6504c8b558490108c0792ed0 /content/en
parentAdded content (diff)
downloadwww-6cf52e30ab8f694acfedb6a87b2aa264cd0f6db5.tar.gz
www-6cf52e30ab8f694acfedb6a87b2aa264cd0f6db5.tar.bz2
www-6cf52e30ab8f694acfedb6a87b2aa264cd0f6db5.zip
Added content about git.adyxax.org
Diffstat (limited to 'content/en')
-rw-r--r--content/en/docs/adyxax.org/services/git.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/content/en/docs/adyxax.org/services/git.md b/content/en/docs/adyxax.org/services/git.md
new file mode 100644
index 0000000..a7a9374
--- /dev/null
+++ b/content/en/docs/adyxax.org/services/git.md
@@ -0,0 +1,42 @@
+---
+title: "git"
+weight: 1
+description: >
+ adyxax.org git server
+---
+
+git.adyxax.org is a gitea instance. For about 10 years I used a gitolite installation but I finally went for a gui instead in order to host repositories for non tech people.
+
+## Preparing the postgresql database
+
+I am currently hosting this gitea instance on an OpenBSD server. Obviously postgresql is packaged on this system so the installation is as simple as :
+{{< highlight sh >}}
+pkg_add postgresql-server
+su - __postgresql
+mkdir /var/postgresql/data
+initdb -D /var/postgresql/data -U postgres -A scram-sha-256 -E UTF8 -W
+rcctl enable postgresql
+rcctl start postgresql
+su - ___postgresql
+psql -U postgresql
+CREATE ROLE gitea WITH LOGIN PASSWORD 'XXXXX';
+CREATE DATABASE gitea WITH OWNER gitea TEMPLATE template0 ENCODING UTF8 LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
+{{< /highlight >}}
+
+Since it is OpenBSD the defaults are secure for a local usage, therefore no other configuration is necessary.
+
+## Installing gitea
+
+Gitea is packaged on OpenBSD so the installation is as simple as :
+{{< highlight sh >}}
+pkg_add gitea
+nvim /etc/gitea/app.ini
+rcctl enable gitea
+rcctl start gitea
+{{< /highlight >}}
+
+## TODO Serving the website
+
+{{< highlight sh >}}
+nvim /etc/h2o/h2o.conf
+{{< /highlight >}}