mash-playbook/docs/services/soft-serve.md

40 lines
1.9 KiB
Markdown
Raw Normal View History

2023-03-28 15:02:22 +02:00
# Soft Serve
2023-03-28 15:47:07 +02:00
[Soft Serve](https://github.com/charmbracelet/soft-serve) is a tasty, self-hostable [Git](https://git-scm.com/) server for the command line.
2023-03-28 15:02:22 +02:00
## Configuration
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process:
```yaml
########################################################################
# #
# soft-serve #
# #
########################################################################
soft_serve_enabled: true
2023-03-28 15:47:07 +02:00
2023-03-28 15:11:58 +02:00
# The hostname of this system.
# It will be used for generating git clone URLs (e.g. ssh://mash.example.com/repository.git)
soft_serve_hostname: mash.example.com
2023-03-28 15:47:07 +02:00
# Expose Soft Serve's port. For git servers the usual git-over-ssh port is 22
soft_serve_container_bind_port: 2222
# This key will be able to authenticate with ANY user until you configure Soft Serve
soft_serve_initial_admin_key: YOUR PUBLIC SSH KEY HERE
2023-03-28 15:02:22 +02:00
########################################################################
# #
# /soft-serve #
# #
########################################################################
```
## Usage
2023-03-28 15:47:07 +02:00
After you've installed Soft Serve, you can `ssh your-user@mash.example.com -p 2222` with the SSH key defined in `soft_serve_initial_admin_key` to see its [TUI](https://en.wikipedia.org/wiki/Text-based_user_interface) and follow the instructions to configure Soft Serve further.
2023-03-28 15:40:35 +02:00
2023-03-28 15:47:07 +02:00
Note that you have to [finish the configuration yourself](https://github.com/charmbracelet/soft-serve#configuration), otherwise any user with `soft_serve_initial_admin_key` will work as an admin.