commits
unless a branch is updated, resubmit will remain disabled; and when
there are changes added to the branch, a hint is supplied.
Added two additional options:
- stateDir: controls where the knotserver's state should be stored
(defaults to `/home/git` to maintain compatibility with previous configs)
- openFirewall: decides if we should open port 22 for ssh
(defaults to true to maintain compatibility with previous configs)
Made use of config options that weren't being used
Changed the `gitUser` to be a system user instead of a normal user.
This is purely cosmetic and pretty much just keeps the UID and GID
below 1000. If the user and group were already made, NixOS won't
change them so this shouldn't have the possibility of breaking any
existing setups but if the UID and GID are changing, the activation
script that creates the directories should update the owner of all the
state files.
Add short-hand for `config.services.tangled-knotserver`
Instead of typing `config.services.tangled-knotserver` we can now use
`cfg` to refer to the module's options.
Fix stdin piping to git-upload-pack. I think we were closing the pipe
too soon previously, resulting in the 'fatal: remote end hung up
unexpectedly' error. Probably went unnoticed for smaller repos.
Also fix a bunch of misc. bugs in with superfluous http header writes
and the gzip reader being shadowed.
This fixes the bug where paths wouldn't show up in non-default branches.
We were running 'git log' against the bare repository that was pointing
to the default branch, which would then return no output for that
specific path since -- understandably -- the path doesn't exist on the
default branch. This change simply passes the current g.h
(plumbing.Hash) to 'git log' which resolves the path in that ref.
seems to have been unlinked accidentally. this restores it + resolves DIDs in that page.
you might wanna vet the format - i didn't test this btw but i think it'll work lmao
comment routes are now grouped under the "round" they operate on
my hunch is that this is caused by using a GET request, which browsers tend to cache sometimes.
The Nix build fails on Nixpkgs 24.11 due to CGO_ENABLED being renamed to env.CGO_ENABLED https://github.com/NixOS/nixpkgs/commit/3b1ec755ca88778d4b706b6dd52b57c0086b1548
This PR changed the Nix flake Nixpkgs input to 24.11 instead of the master branch, which makes it easier to deploy with systems tracking stable Nixpkgs.
get user handle from resolver, and use the user's primary email id, if set
Version is currently set during build time using ldflags, but if not, it
will attempt to pick up the Go module version (if installed via 'go
install' or 'go get', for example).
adds the delete handle for delete a specified ssh key.
I just changed the hash for goModHash and nix build succeeded.
Introduces two new user routing options: handles without @'s will
redirect to their @'d counterparts, and did-plc-foobar (a flattened
did) will redirect to did:plc:foobar.
These can now be used as valid Go modules.
no point in customizing the endpoint in keyfetch, if it is not propagated through to repoguard
when trying to verify a [plus addressed](https://www.google.com/search?q=plus+addressing) email id, opening the received verification link gives "Invalid verification code. Please request a new verification email."
this is due to unescaped `+` in the email id. ideally all the query params should be url encoded.
Added two additional options:
- stateDir: controls where the knotserver's state should be stored
(defaults to `/home/git` to maintain compatibility with previous configs)
- openFirewall: decides if we should open port 22 for ssh
(defaults to true to maintain compatibility with previous configs)
Made use of config options that weren't being used
Changed the `gitUser` to be a system user instead of a normal user.
This is purely cosmetic and pretty much just keeps the UID and GID
below 1000. If the user and group were already made, NixOS won't
change them so this shouldn't have the possibility of breaking any
existing setups but if the UID and GID are changing, the activation
script that creates the directories should update the owner of all the
state files.
Add short-hand for `config.services.tangled-knotserver`
Instead of typing `config.services.tangled-knotserver` we can now use
`cfg` to refer to the module's options.
Fix stdin piping to git-upload-pack. I think we were closing the pipe
too soon previously, resulting in the 'fatal: remote end hung up
unexpectedly' error. Probably went unnoticed for smaller repos.
Also fix a bunch of misc. bugs in with superfluous http header writes
and the gzip reader being shadowed.
This fixes the bug where paths wouldn't show up in non-default branches.
We were running 'git log' against the bare repository that was pointing
to the default branch, which would then return no output for that
specific path since -- understandably -- the path doesn't exist on the
default branch. This change simply passes the current g.h
(plumbing.Hash) to 'git log' which resolves the path in that ref.
The Nix build fails on Nixpkgs 24.11 due to CGO_ENABLED being renamed to env.CGO_ENABLED https://github.com/NixOS/nixpkgs/commit/3b1ec755ca88778d4b706b6dd52b57c0086b1548
This PR changed the Nix flake Nixpkgs input to 24.11 instead of the master branch, which makes it easier to deploy with systems tracking stable Nixpkgs.
Version is currently set during build time using ldflags, but if not, it
will attempt to pick up the Go module version (if installed via 'go
install' or 'go get', for example).
adds the delete handle for delete a specified ssh key.
when trying to verify a [plus addressed](https://www.google.com/search?q=plus+addressing) email id, opening the received verification link gives "Invalid verification code. Please request a new verification email."
this is due to unescaped `+` in the email id. ideally all the query params should be url encoded.