Git over SSH for Forgejo and Gitea (tcp_ports) (#27)
This commit is contained in:
1 parent
7b6851c023
commit
f3157b71f3
9 files changed
+72
-15
No files matched your search
@@ -32,6 +32,7 @@ Cottage how to run it:
|
||||
| `default_resources`, `min_resources` | `cpu_millis`, `memory_mb`, `storage_mb` |
|
||||
| `volumes` | named volumes to hand to a non-root user: `data: { uid: 1000, gid: 1000, mode: "0750" }` |
|
||||
| `parameters` | settings people can see or change; secrets are generated (`generate: random32`, `random16` or `hex32`) |
|
||||
| `tcp_ports` | at most two ports the app needs besides HTTPS, for protocols with their own authentication such as SSH: `[{ name: ssh, service: app, port: 2222 }]` |
|
||||
|
||||
Each parameter has a `key`, `label` and `type` (`string`, `int`, `bool` or `choice` with `choices`), and
|
||||
may set `default`, `secret`, `generate`, `editable` (the owner can change it later), `group` (fields
|
||||
@@ -42,6 +43,15 @@ app's own words: `${SMTP_SECURITY_IS_TLS:+ssl}${SMTP_SECURITY_IS_STARTTLS:+tls}`
|
||||
parameter it sets `<KEY>_IS_EMPTY=true`, so `${SMTP_HOST_IS_EMPTY:+log}${SMTP_HOST:+smtp}` gives `log`
|
||||
while no SMTP server is set and `smtp` once one is.
|
||||
|
||||
### Ports besides HTTPS
|
||||
|
||||
Web traffic reaches every app through Cottage's proxy. An app that also needs another port, such as
|
||||
a Git host's SSH server, lists it under `tcp_ports`. Cottage gives each app a public port of its own
|
||||
for it and sets two variables, so the app can show the right address: `HARBOR_TCP_HOST` (a host name
|
||||
that reaches the server directly) and `HARBOR_PORT_<NAME>` (the port, e.g. `HARBOR_PORT_SSH`). The
|
||||
app's IP allowlist and blocklist apply to the port, and it stays closed until the owner finishes setup.
|
||||
Only use it for protocols that sign people in themselves. Forgejo's recipe is an example.
|
||||
|
||||
### Outgoing mail
|
||||
|
||||
Apps send mail through the owner's own mail provider (for example their email host, or a sending
|
||||
|
||||
Reference in new issue
Block a user