From 33f8351eb11338b6939d5220d00696ec3eea135f Mon Sep 17 00:00:00 2001 From: Elara Date: Mon, 5 Aug 2024 01:29:03 +0000 Subject: [PATCH] Update Backends --- Backends.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Backends.md b/Backends.md index dc1c893..8ba53ef 100644 --- a/Backends.md +++ b/Backends.md @@ -6,7 +6,8 @@ The Docker backend integrates with a docker daemon running on your system to pro - **command** (optional, []string): The command to run inside the container. Default is `["/bin/sh"]`. - **privileged** (optional, bool): If `true`, the command will run in privileged mode. Default is `false`. -- **user** (optional, string): The user to run the command as inside the container. +- **user** (optional, string): The user to run the command as inside the container. If this is not set, **user_map** will be used to determine the right user, or the seashell username will be used if the user doesn't exist in the map. +- **user_map** (optional, map[string]string): A map from seashell usernames to docker usernames or UIDs. ### Permissions @@ -126,9 +127,9 @@ The Proxy backend allows SSH connections to be proxied to another server. ### Settings - **server** (string): The target server's address. -- **user** (optional, string): The user to connect as on the proxy server. If this is not set, **userMap** will be used to determine the right user, or the seashell username will be used if the user doesn't exist in the map. +- **user** (optional, string): The user to connect as on the proxy server. If this is not set, **user_map** will be used to determine the right user, or the seashell username will be used if the user doesn't exist in the map. - **privkey** (optional, string): The path to the private key for authentication. If this is not provided, users will be asked for the target server's password when they attempt to connect. -- **userMap** (optional, map[string]string): A map from seashell usernames to target server usernames. +- **user_map** (optional, map[string]string): A map from seashell usernames to target server usernames. ### Permissions