Looks like the account certs directory doesn't actually do anything

This commit is contained in:
Matthew Lopez 2023-12-20 14:16:42 -05:00
parent 7eb5108a47
commit e0cb3e9769
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E
3 changed files with 2 additions and 27 deletions

3
.gitignore vendored
View File

@ -1,5 +1,2 @@
# Local environment variables (used for secrets)
/environment/*.local.env
# Account server certificates
/certs/

View File

@ -185,8 +185,8 @@ services:
- ./environment/account.env
- ./environment/account.local.env
volumes:
- type: bind
source: ./certs
- type: volume
source: account-certificates
target: /app/certs
dns: 172.20.0.2
networks:

View File

@ -1,22 +0,0 @@
#! /bin/sh
set -eu
required_certs="account|nex test|service test|nex friends"
# The datastore keys are required for the account server to start, so this needs
# to run first
docker compose run --rm account generate-keys.js nex datastore
docker compose up -d account
# Split the certs on | while looping
IFS="|"
for cert in $required_certs; do
# Split the cert again on space to separate the 2 arguments
IFS=" "
set -- "$cert"
docker compose exec account node generate-keys.js $cert
done
docker compose down