fix: update uid encryption key defaults

This commit is contained in:
richjohnrambo
2026-09-17 16:59:47 +08:00
parent ac75caba86
commit b9aaccc830
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ You can specify the following environment variables when issuing `docker run` co
| `TLS_DOMAIN_NAME`[^2] | string | | If non-empty, enables TLS (http**s**) and configures domain name of your container, e.g. `www.example.com`. In order for TLS to work you have to expose your HTTPS port to the Internet and correctly configure DNS. It WILL FAIL with `localhost` or unroutable IPs. |
| `TNPG_AUTH_TOKEN` | string | | Tinode Push Gateway authentication token. |
| `TNPG_ORG`[^2] | string | | Tinode Push Gateway organization name as registered at https://console.tinode.co |
| `UID_ENCRYPTION_KEY`[^2] | string | `la6YsO+bNX/+XIkOqc5Svw==` | base64-encoded 16 random bytes used as an encryption key for user IDs. |
| `UID_ENCRYPTION_KEY`[^2] | string | `dkXxWLwqUNRfYmdXRzOkZw==` | base64-encoded 16 random bytes used as an encryption key for user IDs. |
| `UPGRADE_DB` | bool | `false` | Upgrade database schema, if necessary. |
| `WAIT_FOR` | string | | If non-empty, waits for the specified database `host:port` to be available before starting the server. |
+1 -1
View File
@@ -153,7 +153,7 @@ ENV API_KEY_SALT=T713/rYYgW7g4m3vG6zGRh7+FM1t0T8j13koXScOAj4=
ENV AUTH_TOKEN_KEY=wfaY2RgF2S1OQI/ZlK+LSrp1KB2jwAdGAIHQ7JZn+Kc=
# Key to initialize UID generator
ENV UID_ENCRYPTION_KEY=la6YsO+bNX/+XIkOqc5Svw==
ENV UID_ENCRYPTION_KEY=dkXxWLwqUNRfYmdXRzOkZw==
# Disable TLS by default.
ENV TLS_ENABLED=false
+1 -1
View File
@@ -76,7 +76,7 @@
},
"store_config": {
"uid_key": "la6YsO+bNX/+XIkOqc5Svw==",
"uid_key": "dkXxWLwqUNRfYmdXRzOkZw==",
"max_results": 1024,
"use_adapter": "mysql",
"adapters": {
+1 -1
View File
@@ -76,7 +76,7 @@
},
"store_config": {
"uid_key": "la6YsO+bNX/+XIkOqc5Svw==",
"uid_key": "dkXxWLwqUNRfYmdXRzOkZw==",
"max_results": 1024,
"use_adapter": "mysql",
"adapters": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"p2p_delete_enabled": true,
"store_config": {
"uid_key": "la6YsO+bNX/+XIkOqc5Svw==",
"uid_key": "dkXxWLwqUNRfYmdXRzOkZw==",
"use_adapter": "mysql",
"adapters": {
"postgres": {