mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
add support for BW_DB_PORT (#2520)
This commit is contained in:
parent
c39fb8f7af
commit
bc85cbe381
@ -11,9 +11,9 @@ adduser -s /bin/false -D -u $UID -G $GROUP_NAME bitwarden
|
|||||||
|
|
||||||
# Translate environment variables for application settings
|
# Translate environment variables for application settings
|
||||||
VAULT_SERVICE_URI=https://$BW_DOMAIN
|
VAULT_SERVICE_URI=https://$BW_DOMAIN
|
||||||
MYSQL_CONNECTION_STRING="server=$BW_DB_SERVER;database=$BW_DB_DATABASE;user=$BW_DB_USERNAME;password=$BW_DB_PASSWORD"
|
MYSQL_CONNECTION_STRING="server=$BW_DB_SERVER;port=${BW_DB_PORT:-3306};database=$BW_DB_DATABASE;user=$BW_DB_USERNAME;password=$BW_DB_PASSWORD"
|
||||||
POSTGRESQL_CONNECTION_STRING="Host=$BW_DB_SERVER;Database=$BW_DB_DATABASE;Username=$BW_DB_USERNAME;Password=$BW_DB_PASSWORD"
|
POSTGRESQL_CONNECTION_STRING="Host=$BW_DB_SERVER;Port=${BW_DB_PORT:-5432};Database=$BW_DB_DATABASE;Username=$BW_DB_USERNAME;Password=$BW_DB_PASSWORD"
|
||||||
SQLSERVER_CONNECTION_STRING="Server=$BW_DB_SERVER;Database=$BW_DB_DATABASE;User Id=$BW_DB_USERNAME;Password=$BW_DB_PASSWORD;"
|
SQLSERVER_CONNECTION_STRING="Server=$BW_DB_SERVER,${BW_DB_PORT:-1433};Database=$BW_DB_DATABASE;User Id=$BW_DB_USERNAME;Password=$BW_DB_PASSWORD;"
|
||||||
SQLITE_CONNECTION_STRING="Data Source=$BW_DB_FILE;"
|
SQLITE_CONNECTION_STRING="Data Source=$BW_DB_FILE;"
|
||||||
INTERNAL_IDENTITY_KEY=$(openssl rand -hex 30)
|
INTERNAL_IDENTITY_KEY=$(openssl rand -hex 30)
|
||||||
OIDC_IDENTITY_CLIENT_KEY=$(openssl rand -hex 30)
|
OIDC_IDENTITY_CLIENT_KEY=$(openssl rand -hex 30)
|
||||||
|
Loading…
Reference in New Issue
Block a user