Skip to content

Commit 6ad0904

Browse files
committed
add external token encryption keys to ./scripts/develop.sh by default
1 parent 1851fff commit 6ad0904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/develop.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ set -euo pipefail
1515

1616
CODER_DEV_ACCESS_URL="${CODER_DEV_ACCESS_URL:-http://127.0.0.1:3000}"
1717
DEFAULT_PASSWORD="SomeSecurePassword!"
18+
EXTERNAL_TOKEN_ENCRYPTION_KEYS="Y29kZXItY29kZXItY29kZXItY29kZXItY29kZXItMQo="
1819
password="${CODER_DEV_ADMIN_PASSWORD:-${DEFAULT_PASSWORD}}"
1920
use_proxy=0
2021

@@ -136,7 +137,7 @@ fatal() {
136137
trap 'fatal "Script encountered an error"' ERR
137138

138139
cdroot
139-
start_cmd API "" "${CODER_DEV_SHIM}" server --http-address 0.0.0.0:3000 --swagger-enable --access-url "${CODER_DEV_ACCESS_URL}" --dangerous-allow-cors-requests=true "$@"
140+
start_cmd API "" "${CODER_DEV_SHIM}" server --http-address 0.0.0.0:3000 --swagger-enable --access-url "${CODER_DEV_ACCESS_URL}" --dangerous-allow-cors-requests=true --external-token-encryption-keys="${EXTERNAL_TOKEN_ENCRYPTION_KEYS}" "$@"
140141

141142
echo '== Waiting for Coder to become ready'
142143
# Start the timeout in the background so interrupting this script

0 commit comments

Comments
 (0)