Lasa is a stateless proxy that generates a RSS or an Atom feed from a Standard.site publication. lasa.anhgelus.world
rss atom atprotocol standard-site atproto
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

build(docker): change default config location

+40 -15
+26
.dockerignore
··· 1 + # Binaries for programs and plugins 2 + *.exe 3 + *.exe~ 4 + *.dll 5 + *.so 6 + *.dylib 7 + 8 + # Test binary, built with `go test -c` 9 + *.test 10 + 11 + # Output of the go coverage tool, specifically when used with LiteIDE 12 + *.out 13 + 14 + # Dependency directories (remove the comment below to include it) 15 + # vendor/ 16 + 17 + # Go workspace file 18 + go.work* 19 + 20 + testdata 21 + build 22 + test.toml 23 + config/ 24 + 25 + .git 26 + *.md
+1 -9
.gitignore
··· 1 - # Created by https://www.toptal.com/developers/gitignore/api/go 2 - # Edit at https://www.toptal.com/developers/gitignore?templates=go 3 - 4 - ### Go ### 5 - # If you prefer the allow list template instead of the deny list, see community template: 6 - # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore 7 - # 8 1 # Binaries for programs and plugins 9 2 *.exe 10 3 *.exe~ ··· 24 17 # Go workspace file 25 18 go.work* 26 19 27 - # End of https://www.toptal.com/developers/gitignore/api/go 28 - 29 20 testdata 30 21 build 31 22 test.toml 23 + config/
+2 -2
Dockerfile
··· 19 19 COPY --from=builder /app/build/lasa . 20 20 21 21 # generate default config file 22 - RUN /app/lasad gen-config 22 + RUN mkdir -p /etc/lasad && /app/lasad gen-config -c "/etc/lasad/config.toml" 23 23 24 - ENTRYPOINT [ "/app/lasad" ] 24 + ENTRYPOINT [ "/app/lasad", "-c", "/etc/lasad/config.toml" ]
+2 -2
compose.yml
··· 4 4 ports: 5 5 - 8000:8000 6 6 volumes: 7 - - ./config.toml:/etc/lasad.toml 7 + - ./config/:/etc/lasad/ 8 8 depends_on: 9 9 - redis 10 10 dns: ··· 15 15 lasa: 16 16 image: atcr.io/anhgelus.world/lasa 17 17 volumes: 18 - - ./config.toml:/etc/lasad.toml 18 + - ./config/:/etc/lasad/ 19 19 depends_on: 20 20 - redis 21 21 dns:
+9 -2
justfile
··· 3 3 redis_container := 'redis' 4 4 5 5 docker := 'podman' 6 + docker_profile := 'dev' 6 7 7 8 dev: 8 9 if [[ ! -f {{testConfig}} ]]; then go run ./cmd/lasad/ gen-config -c {{testConfig}}; fi 9 10 go run ./cmd/lasad/ -c {{testConfig}} -v 10 11 11 12 dev-docker: 12 - {{docker}} compose build 13 - {{docker}} compose --profile dev up -d 13 + {{docker}} compose --profile {{docker_profile}} build --no-cache 14 + {{docker}} compose --profile {{docker_profile}} up -d 14 15 15 16 redis: 16 17 {{docker}} run --rm --name {{redis_container}} -p 6379:6379 -d docker.io/library/redis:alpine 17 18 18 19 stop: 19 20 {{docker}} stop {{redis_container}} 21 + 22 + stop-docker: 23 + {{docker}} compose --profile {{docker_profile}} down 24 + 25 + logs-docker: 26 + {{docker}} compose --profile {{docker_profile}} logs 20 27 21 28 build: build-lasa build-lasad 22 29