vault backup: 2025-01-19 19:09:31
This commit is contained in:
parent
f3c049e210
commit
0252199c29
3 changed files with 18 additions and 11 deletions
|
@ -48,7 +48,7 @@ sudo apt install make xxd
|
|||
Generate secrets and add them to `.env` file.
|
||||
See [example.env](https://code.modernleft.org/gravityfargo/bluesky-pds-docker/src/branch/main/example.env) as an example.
|
||||
|
||||
For any unraid users, the `xxd` command is not installed. You'll need another linux machine for that.
|
||||
For any Unraid users, the `xxd` command is not installed. You'll need another linux machine for that.
|
||||
|
||||
```bash
|
||||
# Generate secret environment variables
|
||||
|
|
17
Docker Images/quartz/Generate PDS_PLC_ROTATION_KEY.md
Normal file
17
Docker Images/quartz/Generate PDS_PLC_ROTATION_KEY.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: PDS_PLC_ROTATION_KEY in a container
|
||||
draft: false
|
||||
date: 2025-01-19
|
||||
---
|
||||
Unraid does not come with the `xxd` command installed. There used to be a package called NerdTools that I used to use but it looks like it was removed. I do not recThese commands can be used. A quick google indicates [windows users can use the docker cli](https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=dockerce).
|
||||
|
||||
```bash
|
||||
# on host
|
||||
docker run --rm -it alpine:latest sh
|
||||
|
||||
# in container
|
||||
apk add xxd openssl
|
||||
|
||||
# everything after this is one command
|
||||
echo PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: $(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail -c +8 | head -c 32 | xxd --plain --cols 32)
|
||||
```
|
|
@ -1,10 +0,0 @@
|
|||
```bash
|
||||
# on host
|
||||
docker run --rm -it alpine:latest sh
|
||||
|
||||
# in container
|
||||
apk add xxd openssl
|
||||
|
||||
# everything after this is one command
|
||||
echo PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: $(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail -c +8 | head -c 32 | xxd --plain --cols 32)
|
||||
```
|
Loading…
Reference in a new issue