mirror of
https://github.com/bitwarden/server
synced 2025-12-23 11:43:23 +00:00
Add ability to load custom root CA
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
"extensions": ["ms-dotnettools.csdevkit"]
|
"extensions": ["ms-dotnettools.csdevkit"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"onCreateCommand": "bash .devcontainer/internal_dev/onCreateCommand.sh",
|
||||||
"postCreateCommand": "bash .devcontainer/internal_dev/postCreateCommand.sh",
|
"postCreateCommand": "bash .devcontainer/internal_dev/postCreateCommand.sh",
|
||||||
"forwardPorts": [1080, 1433, 3306, 5432, 10000, 10001, 10002],
|
"forwardPorts": [1080, 1433, 3306, 5432, 10000, 10001, 10002],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
|
|||||||
12
.devcontainer/internal_dev/onCreateCommand.sh
Normal file
12
.devcontainer/internal_dev/onCreateCommand.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
export REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
|
file="$REPO_ROOT/dev/custom-root-ca.crt"
|
||||||
|
|
||||||
|
if [ -e "$file" ]; then
|
||||||
|
echo "Adding custom root CA"
|
||||||
|
sudo cp "$file" /usr/local/share/ca-certificates/
|
||||||
|
sudo update-ca-certificates
|
||||||
|
else
|
||||||
|
echo "No custom root CA found, skipping..."
|
||||||
|
fi
|
||||||
1
dev/.gitignore
vendored
1
dev/.gitignore
vendored
@@ -18,3 +18,4 @@ signingkey.jwk
|
|||||||
|
|
||||||
# Reverse Proxy Conifg
|
# Reverse Proxy Conifg
|
||||||
reverse-proxy.conf
|
reverse-proxy.conf
|
||||||
|
*.crt
|
||||||
|
|||||||
Reference in New Issue
Block a user