summaryrefslogtreecommitdiff
path: root/server/Rocket.toml
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-01-29 00:34:30 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-01-29 00:34:30 +0100
commit05b674190f26e2a58cc7b7288586c031552d50f3 (patch)
tree452035e852a7012061c9424a9dc0f56fcad129ee /server/Rocket.toml
parent145b93302cbb7cb090c90fd07ed4ebabf742e453 (diff)
Add git-server to docker-compose
To make a githook that can run on alpine images (using musl) they need to be cross-compiled. Then it became apparent that the githook binary was pulling in all the same dependencies as the server was. This is not good, but apparently also not something Rust/Cargo has figured out. RFC:s has been shutdown. workspace might be an option but then I probably need to also add a "code shared by both githook and server" library that both can link. Problem for another day.
Diffstat (limited to 'server/Rocket.toml')
-rw-r--r--server/Rocket.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/Rocket.toml b/server/Rocket.toml
index 0abe363..8e23b28 100644
--- a/server/Rocket.toml
+++ b/server/Rocket.toml
@@ -4,8 +4,9 @@ session_max_age_days = 7
ldap_url = "ldap://localhost:1389"
ldap_users = "ou=users,dc=example,dc=org"
ldap_filter = "(objectClass=posixAccount)"
-git_server_root = "git_server"
-authorized_keys = "authorized_keys"
+git_server_root = "../docker/dev/git/repos"
+authorized_keys = "../docker/dev/git/authorized_keys"
+git_hook = "target/x86_64-unknown-linux-musl/debug/eyeballs-githook"
[default.databases.eyeballs]
# root is needed for tests