mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1418: Make use of secrets files clearer
This commit is contained in:
@@ -166,16 +166,6 @@ documented in
|
|||||||
Deploying Guacamole with SQLServer authentication
|
Deploying Guacamole with SQLServer authentication
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
docker run --name some-guacamole --link some-guacd:guacd \
|
|
||||||
--link some-sqlserver:sqlserver \
|
|
||||||
-e SQLSERVER_DATABASE=guacamole_db \
|
|
||||||
-e SQLSERVER_USER=guacamole_user \
|
|
||||||
-e SQLSERVER_PASSWORD=some_password \
|
|
||||||
-e SQLSERVER_DATABASE_FILE=/run/secrets/<secret_name> \
|
|
||||||
-e SQLSERVER_USER_FILE=/run/secrets/<secret_name> \
|
|
||||||
-e SQLSERVER_PASSWORD_FILE=/run/secrets/<secret_name> \
|
|
||||||
-d -p 8080:8080 guacamole/guacamole
|
|
||||||
|
|
||||||
Linking Guacamole to SQLServer requires three environment variables. If any of
|
Linking Guacamole to SQLServer requires three environment variables. If any of
|
||||||
these environment variables are omitted, you will receive an error message, and
|
these environment variables are omitted, you will receive an error message, and
|
||||||
the image will stop:
|
the image will stop:
|
||||||
@@ -185,14 +175,32 @@ the image will stop:
|
|||||||
2. `SQLSERVER_USER` - The user that Guacamole will use to connect to SQLServer.
|
2. `SQLSERVER_USER` - The user that Guacamole will use to connect to SQLServer.
|
||||||
3. `SQLSERVER_PASSWORD` - The password that Guacamole will provide when
|
3. `SQLSERVER_PASSWORD` - The password that Guacamole will provide when
|
||||||
connecting to SQLServer as `SQLSERVER_USER`.
|
connecting to SQLServer as `SQLSERVER_USER`.
|
||||||
4. `SQLSERVER_DATABASE_FILE` - The path of the docker secret containing the name
|
|
||||||
|
docker run --name some-guacamole --link some-guacd:guacd \
|
||||||
|
--link some-sqlserver:sqlserver \
|
||||||
|
-e SQLSERVER_DATABASE=guacamole_db \
|
||||||
|
-e SQLSERVER_USER=guacamole_user \
|
||||||
|
-e SQLSERVER_PASSWORD=some_password \
|
||||||
|
-d -p 8080:8080 guacamole/guacamole
|
||||||
|
|
||||||
|
Alternatively, if you want to store database credentials using Docker secrets,
|
||||||
|
the following three variables are required and replace the previous three:
|
||||||
|
|
||||||
|
1. `SQLSERVER_DATABASE_FILE` - The path of the docker secret containing the name
|
||||||
of database to use for Guacamole authentication.
|
of database to use for Guacamole authentication.
|
||||||
5. `SQLSERVER_USER_FILE` - The path of the docker secret containing the name of
|
2. `SQLSERVER_USER_FILE` - The path of the docker secret containing the name of
|
||||||
the user that Guacamole will use to connect to SQLServer.
|
the user that Guacamole will use to connect to SQLServer.
|
||||||
6. `SQLSERVER_PASSWORD_FILE` - The path of the docker secret containing the
|
3. `SQLSERVER_PASSWORD_FILE` - The path of the docker secret containing the
|
||||||
password that Guacamole will provide when connecting to SQLServer as
|
password that Guacamole will provide when connecting to SQLServer as
|
||||||
`SQLSERVER_USER.
|
`SQLSERVER_USER.
|
||||||
|
|
||||||
|
docker run --name some-guacamole --link some-guacd:guacd \
|
||||||
|
--link some-sqlserver:sqlserver \
|
||||||
|
-e SQLSERVER_DATABASE_FILE=/run/secrets/<secret_name> \
|
||||||
|
-e SQLSERVER_USER_FILE=/run/secrets/<secret_name> \
|
||||||
|
-e SQLSERVER_PASSWORD_FILE=/run/secrets/<secret_name> \
|
||||||
|
-d -p 8080:8080 guacamole/guacamole
|
||||||
|
|
||||||
### Initializing the SQLServer database
|
### Initializing the SQLServer database
|
||||||
|
|
||||||
If your database is not already initialized with the Guacamole schema, you will
|
If your database is not already initialized with the Guacamole schema, you will
|
||||||
|
@@ -409,9 +409,7 @@ sqlserver_missing_vars() {
|
|||||||
FATAL: Missing required environment variables
|
FATAL: Missing required environment variables
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
If using a SQLServer database, you must provide each of the following
|
If using a SQLServer database, you must provide each of the following
|
||||||
environment variables or their corresponding Docker secrets by appending _FILE
|
environment variables:
|
||||||
to the environment variable, and setting the value to the path of the
|
|
||||||
corresponding secret:
|
|
||||||
|
|
||||||
SQLSERVER_USER The user to authenticate as when connecting to
|
SQLSERVER_USER The user to authenticate as when connecting to
|
||||||
SQLServer.
|
SQLServer.
|
||||||
@@ -421,6 +419,20 @@ corresponding secret:
|
|||||||
|
|
||||||
SQLSERVER_DATABASE The name of the SQLServer database to use for Guacamole
|
SQLSERVER_DATABASE The name of the SQLServer database to use for Guacamole
|
||||||
authentication.
|
authentication.
|
||||||
|
|
||||||
|
Alternatively, if you want to store database credentials using Docker secrets,
|
||||||
|
set the path of the corresponding secrets in the following three variables:
|
||||||
|
|
||||||
|
SQLSERVER_DATABASE_FILE The path of the docker secret containing the name
|
||||||
|
of database to use for Guacamole authentication.
|
||||||
|
|
||||||
|
SQLSERVER_USER_FILE The path of the docker secret containing the name of
|
||||||
|
the user that Guacamole will use to connect to SQLServer.
|
||||||
|
|
||||||
|
SQLSERVER_PASSWORD_FILE The path of the docker secret containing the
|
||||||
|
password that Guacamole will provide when connecting to
|
||||||
|
SQLServer as SQLSERVER_USER.
|
||||||
|
|
||||||
END
|
END
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user