Skip to content

Commit 983f216

Browse files
committed
Remove app key flag
1 parent ec46e59 commit 983f216

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/develop.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ set -euo pipefail
1616
DEFAULT_PASSWORD="SomeSecurePassword!"
1717
password="${CODER_DEV_ADMIN_PASSWORD:-${DEFAULT_PASSWORD}}"
1818
use_proxy=0
19-
# Hard coded app security key for the proxy to also use.
20-
app_security_key=bea458bcfb31990fb70f14a7003c0aad4f371f19653f3a632bc9d3492004cd95e0e542c30e5f158f26728373190bfc802b1c1549f52c149af8ad7f5b12ea1ee0995b95de3b86ae78f021c17437649224cd2dcf1b298d180811cf36f4dcb8f33e
2119

2220
args="$(getopt -o "" -l use-proxy,agpl,password: -- "$@")"
2321
eval set -- "$args"
@@ -133,7 +131,7 @@ fatal() {
133131
trap 'fatal "Script encountered an error"' ERR
134132

135133
cdroot
136-
start_cmd API "" "${CODER_DEV_SHIM}" server --http-address 0.0.0.0:3000 --swagger-enable --access-url "http://127.0.0.1:3000" --dangerous-dev-app-security-key ${app_security_key} --experiments "*" "$@"
134+
start_cmd API "" "${CODER_DEV_SHIM}" server --http-address 0.0.0.0:3000 --swagger-enable --access-url "http://127.0.0.1:3000" --experiments "*" "$@"
137135

138136
echo '== Waiting for Coder to become ready'
139137
# Start the timeout in the background so interrupting this script
@@ -187,7 +185,7 @@ fatal() {
187185
# Create the proxy
188186
proxy_session_token=$("${CODER_DEV_SHIM}" proxy create --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --access-url=http://localhost:3010 --only-token)
189187
# Start the proxy
190-
start_cmd PROXY "" "${CODER_DEV_SHIM}" proxy server --http-address=localhost:3010 --proxy-session-token="${proxy_session_token}" --primary-access-url=http://localhost:3000 --app-security-key="${app_security_key}"
188+
start_cmd PROXY "" "${CODER_DEV_SHIM}" proxy server --http-address=localhost:3010 --proxy-session-token="${proxy_session_token}" --primary-access-url=http://localhost:3000
191189
) || echo "Failed to create workspace proxy. No workspace proxy created."
192190
fi
193191

0 commit comments

Comments
 (0)