mirror of
https://github.com/thegeneralist01/config.git
synced 2026-12-04 18:56:56 +01:00
thegeneralist: enable crosspost worker (services.crosspost)
This commit is contained in:
parent
21703da739
commit
f66077d763
7 changed files with 69 additions and 7 deletions
|
|
@ -17,6 +17,7 @@
|
|||
./cache
|
||||
./archive
|
||||
./forgejo
|
||||
./crosspost
|
||||
];
|
||||
|
||||
age.secrets.readlaterBotToken = {
|
||||
|
|
|
|||
5
hosts/thegeneralist/crosspost/api-token.age
Normal file
5
hosts/thegeneralist/crosspost/api-token.age
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 pp9qdQ Dye18WG21VQ551B9FHTQ4h3LuMkHEtvhvdJlM1ITxF8
|
||||
QBg7sp1mGH/1MgXojf8YSQK0eWY+ZEllDiKsV9fvnRk
|
||||
--- odTSmOaF35PJqMI9X2UbfXQr2E4r/wizVmEeKUwXDZg
|
||||
$f£Û&qA]$æ"×Òá±Ûÿ¬¢"ùñÊ®áË´Öo³2ß/SÎë^T¯¶©¹`7zh.E5ŽšBç)‹ÎçyÀ¿˜üV„ã(
|
||||
14
hosts/thegeneralist/crosspost/default.nix
Normal file
14
hosts/thegeneralist/crosspost/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
# Crosspost worker: publishes queued X/LinkedIn/Instagram posts for crosspost-app (Cloudflare).
|
||||
# Outbound HTTPS only. Module source: ~/personal/crosspost (flake input `crosspost`).
|
||||
age.secrets.crosspostApiToken.file = ./api-token.age;
|
||||
age.secrets.crosspostWorkerKey.file = ./worker-key.age;
|
||||
|
||||
services.crosspost = {
|
||||
enable = true;
|
||||
appUrl = "https://crosspost-app.thegeneralist01.workers.dev";
|
||||
apiTokenFile = config.age.secrets.crosspostApiToken.path;
|
||||
privateKeyFile = config.age.secrets.crosspostWorkerKey.path;
|
||||
};
|
||||
}
|
||||
BIN
hosts/thegeneralist/crosspost/worker-key.age
Normal file
BIN
hosts/thegeneralist/crosspost/worker-key.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue