decentralized and customizable links page on top of atproto

add Caddyfile and update README.md

+1 -1
Makefile
··· 1 1 .env: 2 - uv run -- generate_secrets.py >> .env 2 + uv run -- etc/generate_secrets.py >> .env 3 3 4 4 .PHONY: debug 5 5 debug:
+7 -5
README.md
··· 1 1 # ligo.at 2 2 3 - A decentralized links page on top of [AT Protocol][atproto]. 3 + Decentralized and customizable links page on top of [AT Protocol][atproto]. 4 4 5 5 ## dependencies 6 6 ··· 8 8 9 9 ## generate secrets 10 10 11 - Use the `generate_secrets.py` script or run `make .env`. 11 + Use the `etc/generate_secrets.py` script or run `make .env`. 12 12 13 13 ## synchronization 14 14 ··· 20 20 21 21 The Jetstream ingestor can be started with `make ingestor`. 22 22 23 - ### systemd 23 + Some example configuration files are provided in the `etc` folder. They assume the code will live at `/var/www/ligoat`. Keep this in mind if you want to place it somewhere else. 24 24 25 - Two systemd service files are found in the `dist` folder. They can be used to run both the server and the jetstream ingestor. 25 + - A `Caddyfile` that configures a [caddy][caddy] reverse proxy. 26 + - Two systemd service files. They can be used to run both the server and the jetstream ingestor. 26 27 27 28 [atproto]: https://atproto.com 29 + [caddy]: https://caddyserver.com/ 30 + [jetstream]: https://atproto.wiki/en/wiki/reference/networking/jetstream 28 31 [uv]: https://docs.astral.sh/uv/ 29 - [jetstream]: https://atproto.wiki/en/wiki/reference/networking/jetstream
dist/ligoat.service etc/ligoat.service
+1 -1
dist/ligoatingestor.service etc/ligoatingestor.service
··· 1 1 [Unit] 2 2 Description = ligo.at jetstream ingestor 3 - After = ligoat.service 3 + After = network.target 4 4 5 5 [Service] 6 6 ExecStart = uv run -- ingestor
+12
etc/Caddyfile
··· 1 + example.com { 2 + handle_path /static/* { 3 + # change this to where you have the code 4 + root * /var/www/ligoat/src/static 5 + file_sever 6 + } 7 + 8 + handle { 9 + # change this to the port you use 10 + reverse_proxy :8080 11 + } 12 + }
generate_secrets.py etc/generate_secrets.py