Stop randomly generating the minio root username

This commit is contained in:
Matthew Lopez
2023-12-20 11:22:31 -05:00
parent 8461542587
commit 5196fe115f
4 changed files with 4 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ services:
internal:
mongodb:
# TODO: Set up authentication
image: mongo:latest
ports:
# For connecting with mongosh or MongoDB Compass

View File

@@ -7,6 +7,7 @@ PN_ACT_CONFIG_MONGOOSE_OPTION_useUnifiedTopology=true
PN_ACT_CONFIG_WEBSITE_BASE=https://pretendo.network
PN_ACT_CONFIG_REDIS_URL=redis://redis:6379
PN_ACT_CONFIG_S3_ENDPOINT=http://minio:9000
PN_ACT_CONFIG_S3_ACCESS_KEY=minio_pretendo
PN_ACT_CONFIG_CDN_BASE_URL=https://cdn.pretendo.cc
PN_ACT_CONFIG_CDN_SUBDOMAIN=cdn
PN_ACT_CONFIG_EMAIL_HOST=maildev

View File

@@ -1 +1,2 @@
MINIO_DOMAIN=minio
MINIO_ROOT_USER=minio_pretendo

View File

@@ -19,10 +19,7 @@ account_api_key_api=$(openssl rand -base64 32)
echo "PN_ACT_CONFIG_GRPC_MASTER_API_KEY_ACCOUNT=$account_api_key_account" >>./account.local.env
echo "PN_ACT_CONFIG_GRPC_MASTER_API_KEY_API=$account_api_key_api" >>./account.local.env
# Generate access and secret keys for MinIO
minio_access_key=$(openssl rand -base64 32)
echo "PN_ACT_CONFIG_S3_ACCESS_KEY=$minio_access_key" >>./account.local.env
echo "MINIO_ROOT_USER=$minio_access_key" >>./minio.local.env
# Generate secret key for MinIO
minio_secret_key=$(openssl rand -base64 32)
echo "PN_ACT_CONFIG_S3_ACCESS_SECRET=$minio_secret_key" >>./account.local.env
echo "MINIO_ROOT_PASSWORD=$minio_secret_key" >>./minio.local.env