Skip to content

Commit

Permalink
ENABLE_MANAGEMENT_HTTPS flag
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Oct 16, 2023
1 parent 2be7452 commit 029939b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/server-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ else
/subsystem=elytron/server-ssl-context=httpsSSC:add(key-manager=httpsKM,protocols=["TLSv1.2"])
/subsystem=undertow/server=default-server/https-listener=https:undefine-attribute(name=security-realm)
/subsystem=undertow/server=default-server/https-listener=https:write-attribute(name=ssl-context,value=httpsSSC)
run-batch
EOF
fi

if [[ -z "${ENABLE_MANAGEMENT_HTTPS}" ]]; then
echo "Skipping config management ssl because ENABLE_MANAGEMENT_HTTPS undefined"
return 0
else
${WILDFLY_CLI_PATH} -c <<EOF
batch
/core-service=management/management-interface=http-interface:write-attribute(name=ssl-context,value=httpsSSC)
/core-service=management/management-interface=http-interface:write-attribute(name=secure-socket-binding, value=management-https)
run-batch
Expand Down

0 comments on commit 029939b

Please sign in to comment.