diff --git a/packages/docs/src/components/toggle.vue b/packages/docs/src/components/toggle.vue new file mode 100644 index 00000000..e43a72ad --- /dev/null +++ b/packages/docs/src/components/toggle.vue @@ -0,0 +1,96 @@ + + + + + diff --git a/packages/docs/src/self-hosting/users-authentication-key-generator.md b/packages/docs/src/self-hosting/users-authentication-key-generator.md index 1c2a90ea..c6ebdd5a 100644 --- a/packages/docs/src/self-hosting/users-authentication-key-generator.md +++ b/packages/docs/src/self-hosting/users-authentication-key-generator.md @@ -1,21 +1,44 @@ # User Authentication Key Generator @@ -27,3 +50,19 @@ This tool generates the value for the `AUTHENTICATION_USERS` environment variabl ```txt-vue AUTHENTICATION_USERS={{ envValue }} ``` + + + Escape for Docker Compose (use $$ instead of $) + + + + Escape for Docker Run (use \$ instead of $) + + +--- + +> [!INFO] Escaping in Docker Run +> When using env variables in docker run command with `-e` on bash, the `$` character should be escaped in the password hash. For example, `\$2a\$10\$...`. + +> [!INFO] Escaping in Docker Compose +> When using env variables in docker-compose, the `$` character should be escaped with another `$`. For example, `$$2a$$10$$...`.