Compare commits
3 commits
f3c049e210
...
da122502d7
Author | SHA1 | Date | |
---|---|---|---|
da122502d7 | |||
59729e3e41 | |||
0252199c29 |
3 changed files with 26 additions and 20 deletions
|
@ -24,6 +24,10 @@ 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.
|
||||
|
||||
|
||||
> [!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
|
||||
> Before changing images, upgrading, or any other modification always backup your data!
|
||||
|
||||
|
@ -31,15 +35,10 @@ 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.
|
||||
|
||||
#### Manjaro/Arch
|
||||
|
||||
```bash
|
||||
Manjaro/Arch
|
||||
sudo pacman -S jq
|
||||
```
|
||||
|
||||
#### Debian/Ubuntu
|
||||
|
||||
```bash
|
||||
# Debian/Ubuntu
|
||||
sudo apt install make xxd
|
||||
```
|
||||
|
||||
|
@ -48,7 +47,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. I made [[Generate PDS_PLC_ROTATION_KEY|some instructions]] for using a temporary alpine container if that helps.
|
||||
|
||||
```bash
|
||||
# Generate secret environment variables
|
||||
|
@ -66,7 +65,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]]
|
||||
|
||||
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]
|
||||
|
@ -74,7 +73,7 @@ By default, the image uses 1000:1000 as the UID:GID for the user. This can be ch
|
|||
|
||||
![[traefik]]
|
||||
|
||||
Optionally, you can use the [[middleware|BlueskyHeaders]] middleware to set headers.
|
||||
Optionally, you can use the [[middleware|BlueskyHeaders]] middle ware to set headers.
|
||||
|
||||
---
|
||||
|
||||
|
|
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 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)
|
||||
```
|
|
@ -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