mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-15 02:57:04 +02:00
16 lines
365 B
Bash
16 lines
365 B
Bash
#!/bin/env sh
|
|
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
set -eux
|
|
|
|
LOG_DIR="$(dirname "$LOG_FILE_PATH")"
|
|
|
|
# Run nc to listen to port 9090
|
|
nc -l 9090 &
|
|
|
|
$VAULT_BIN_PATH audit enable file file_path="$LOG_FILE_PATH"
|
|
$VAULT_BIN_PATH audit enable syslog tag="vault" facility="AUTH"
|
|
$VAULT_BIN_PATH audit enable socket address="127.0.0.1:9090"
|