Organize local infrastructure and Vault secrets by service ownership
This commit is contained in:
1 parent
1b8800ee73
commit
9dbf0bd80c
44 files changed
+496
-359
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
umask 077
|
||||
# Generated by Vault with hexadecimal encoding; never interpolates user input.
|
||||
case "$NATS_TOKEN" in ''|*[!0-9a-f]*) exit 1;; esac
|
||||
cat > /run/sxchnge/nats.conf <<CONFIG
|
||||
port: 4222
|
||||
http_port: 8222
|
||||
authorization { token: "$NATS_TOKEN" }
|
||||
jetstream { store_dir: "/data/jetstream" }
|
||||
CONFIG
|
||||
unset NATS_TOKEN
|
||||
exec nats-server -c /run/sxchnge/nats.conf
|
||||
Reference in new issue
Block a user