Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 983a716

Browse files
fix: update API key hash, add comments to docker compose files (#448)
1 parent eb2c7cb commit 983a716

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

‎deploy/docker/docker-compose-multi.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ services:
3838
LOWCODER_NODE_SERVICE_URL: "http://lowcoder-node-service:6060"
3939
LOWCODER_MAX_QUERY_TIMEOUT: 120
4040
ENABLE_USER_SIGN_UP: "true"
41+
#
42+
# ! PLEASE CHANGE THESE TO SOMETHING UNIQUE !
43+
#
44+
# ENCRYPTION_PASSWORD and ENCRYPTION_SALT is used to encrypt sensitive
45+
# data in database so it is important to change the defaults
46+
#
4147
ENCRYPTION_PASSWORD: "lowcoder.org"
4248
ENCRYPTION_SALT: "lowcoder.org"
4349
CORS_ALLOWED_DOMAINS: "*"
@@ -46,7 +52,11 @@ services:
4652
DEFAULT_ORG_GROUP_COUNT: 100
4753
DEFAULT_ORG_APP_COUNT: 1000
4854
DEFAULT_DEVELOPER_COUNT: 50
49-
LOWCODER_API_KEY_SECRET: "123456789101112131415123456789101112131415123456789101112131415123456789101112131415"
55+
#
56+
# API-KEY secret - should be a string of at least 32 random characters
57+
# - on linux/mac, generate one eg. with: head /dev/urandom | head -c 30 | shasum -a 256
58+
#
59+
LOWCODER_API_KEY_SECRET: "5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
5060
restart: unless-stopped
5161
depends_on:
5262
- mongodb

‎deploy/docker/docker-compose.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,20 @@ services:
3030
MONGODB_URL: "mongodb://localhost:27017/lowcoder?authSource=admin"
3131
REDIS_URL: "redis://localhost:6379"
3232
ENABLE_USER_SIGN_UP: "true"
33+
#
34+
# ! PLEASE CHANGE THESE TO SOMETHING UNIQUE !
35+
#
36+
# ENCRYPTION_PASSWORD and ENCRYPTION_SALT is used to encrypt sensitive
37+
# data in database so it is important to change the defaults
38+
#
3339
ENCRYPTION_PASSWORD: "lowcoder.org"
3440
ENCRYPTION_SALT: "lowcoder.org"
3541
CORS_ALLOWED_DOMAINS: "*"
36-
LOWCODER_API_KEY_SECRET: "123456789101112131415123456789101112131415123456789101112131415123456789101112131415"
42+
#
43+
# API-KEY secret - should be a string of at least 32 random characters
44+
# - on linux/mac, generate one eg. with: head /dev/urandom | head -c 30 | shasum -a 256
45+
#
46+
LOWCODER_API_KEY_SECRET: "5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
3747
# api and node service parameters
3848
LOWCODER_API_SERVICE_URL: "http://localhost:8080"
3949
LOWCODER_NODE_SERVICE_URL: "http://localhost:6060"

‎server/api-service/lowcoder-server/src/main/resources/application-lowcoder.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ springdoc:
5757

5858
auth:
5959
api-key:
60-
secret: 123456789101112131415123456789101112131415123456789101112131415123456789101112131415
60+
secret: 5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b
6161
email:
6262
enable: true
6363
enable-register: true

‎server/api-service/lowcoder-server/src/main/resources/selfhost/ce/application.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
auth:
22
api-key:
3-
secret: ${LOWCODER_API_KEY_SECRET:123456789101112131415123456789101112131415123456789101112131415123456789101112131415}
3+
secret: ${LOWCODER_API_KEY_SECRET:5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b}
44
email:
55
enable: true
66
enable-register: ${ENABLE_USER_SIGN_UP:true}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /