Compare commits
No commits in common. "da122502d75efea25b3eaf84d3c965e2c9494fec" and "f3c049e210f01e797e68528bf6b998b3912b72b3" have entirely different histories.
da122502d7
...
f3c049e210
3 changed files with 20 additions and 26 deletions
|
@ -24,10 +24,6 @@ It is required to run the instance behind a proxy (like [Traefik](https://doc.tr
|
||||||
|
|
||||||
This is not intended for production, and I am not responsible for any data loss or security issues. This is a personal project, and I am not affiliated with Bluesky.
|
This is not intended for production, and I am not responsible for any data loss or security issues. This is a personal project, and I am not affiliated with Bluesky.
|
||||||
|
|
||||||
|
|
||||||
> [!NOTE] Custom Domain
|
|
||||||
> You do <u>not</u> need to setup a PDS to have a custom domain in your username. Bluesky provides [documentation](https://bsky.social/about/blog/4-28-2023-domain-handle-tutorial) for DNS setup.
|
|
||||||
|
|
||||||
> [!warning] Data Warning
|
> [!warning] Data Warning
|
||||||
> Before changing images, upgrading, or any other modification always backup your data!
|
> Before changing images, upgrading, or any other modification always backup your data!
|
||||||
|
|
||||||
|
@ -35,10 +31,15 @@ This is not intended for production, and I am not responsible for any data loss
|
||||||
|
|
||||||
I haven't verified these are the minimum requirements, but they are what I found to be necessary during development. I probably had some dependencies installed already.
|
I haven't verified these are the minimum requirements, but they are what I found to be necessary during development. I probably had some dependencies installed already.
|
||||||
|
|
||||||
|
#### Manjaro/Arch
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
Manjaro/Arch
|
|
||||||
sudo pacman -S jq
|
sudo pacman -S jq
|
||||||
# Debian/Ubuntu
|
```
|
||||||
|
|
||||||
|
#### Debian/Ubuntu
|
||||||
|
|
||||||
|
```bash
|
||||||
sudo apt install make xxd
|
sudo apt install make xxd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -47,7 +48,7 @@ sudo apt install make xxd
|
||||||
Generate secrets and add them to `.env` file.
|
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.
|
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. I made [[Generate PDS_PLC_ROTATION_KEY|some instructions]] for using a temporary alpine container if that helps.
|
For any unraid users, the `xxd` command is not installed. You'll need another linux machine for that.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Generate secret environment variables
|
# Generate secret environment variables
|
||||||
|
@ -65,7 +66,7 @@ Full list of additional Environment Variables provided by bluesky upstream can b
|
||||||
|
|
||||||
If you'd like to learn more about my docker setup, head over to [[getting started|Docker - Getting Started]]
|
If you'd like to learn more about my docker setup, head over to [[getting started|Docker - Getting Started]]
|
||||||
|
|
||||||
By default, the image uses 1000:1000 as the `UID:GID` for the user. This can be changed by setting the `PUID` and `PGID` environment variables.
|
By default, the image uses 1000:1000 as the UID:GID for the user. This can be changed by setting the `PUID` and `PGID` environment variables.
|
||||||
|
|
||||||
|
|
||||||
> [!warning]
|
> [!warning]
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
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 recall if you can use `docker run` in Unraid, but these 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)
|
|
||||||
```
|
|
10
Docker Images/quartz/use xxd in docker.md
Normal file
10
Docker Images/quartz/use xxd in docker.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
```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