Skip to content

Commit

Permalink
update comment about newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-willm committed Nov 24, 2023
1 parent 9e4011d commit 83257d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ main() {
sed -i "s/@@jdbcPassword@@/${POSTGRES_PASSWORD:-}/" config/application.properties

# only set up CSP if both vars are defined, otherwise ignore
# note: newlines in CSP_POLICY must be double-escaped.
# note: newlines in CSP_POLICY must be double-escaped (or can leave out entirely).
# ex: "default-src 'self' https: ;\\\nconnect-src 'self' https: ;\\\n...
if [ -n "$CSP_DISPOSITION" ] && [ -n "$CSP_POLICY" ]; then
echo "csp.disposition=$CSP_DISPOSITION\n" >> config/application.properties
Expand Down

0 comments on commit 83257d5

Please sign in to comment.