forked from mtusi2026/mtusi2026lab7
Щербацевич-БПИ2302-на 3
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
ui = false
|
||||
disable_mlock = true
|
||||
|
||||
storage "file" {
|
||||
path = "/openbao/data"
|
||||
}
|
||||
|
||||
listener "tcp" {
|
||||
address = "0.0.0.0:8200"
|
||||
cluster_address = "0.0.0.0:8201"
|
||||
tls_cert_file = "/tmp/tls/server.crt"
|
||||
tls_key_file = "/tmp/tls/server.key"
|
||||
tls_min_version = "tls12"
|
||||
}
|
||||
|
||||
api_addr = "https://openbao:8200"
|
||||
cluster_addr = "https://openbao:8201"
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
mkdir -p /tmp/tls /openbao/data
|
||||
cp /certs/openbao.crt /tmp/tls/server.crt
|
||||
cp /certs/openbao.key /tmp/tls/server.key
|
||||
chmod 644 /tmp/tls/server.crt
|
||||
chmod 600 /tmp/tls/server.key
|
||||
if id openbao >/dev/null 2>&1; then
|
||||
chown -R openbao:openbao /tmp/tls /openbao/data
|
||||
if command -v su-exec >/dev/null 2>&1; then
|
||||
exec su-exec openbao bao server -config=/openbao/config/config.hcl
|
||||
fi
|
||||
if command -v gosu >/dev/null 2>&1; then
|
||||
exec gosu openbao bao server -config=/openbao/config/config.hcl
|
||||
fi
|
||||
fi
|
||||
exec bao server -config=/openbao/config/config.hcl
|
||||
@@ -0,0 +1,3 @@
|
||||
path "secret/data/messenger/api" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
path "secret/data/messenger/gc" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
path "secret/data/messenger/migrate" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
path "secret/data/messenger/relay" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
path "secret/data/messenger/worker" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
Reference in New Issue
Block a user