proxy_cache_path /var/cache/lemmy_frontend levels=1:2 keys_zone=lemmy_frontend_cache:10m max_size=100m use_temp_path=off;
+limit_req_zone $binary_remote_addr zone=lemmy_ratelimit:10m rate=1r/s;
server {
listen 80;
# Upload limit for pictrs
client_max_body_size 20M;
+ # Rate limit
+ limit_req zone=lemmy_ratelimit burst=30 nodelay;
+
location / {
proxy_pass http://0.0.0.0:8536;
proxy_set_header X-Real-IP $remote_addr;
export DOCKER_BUILDKIT=1
# Rebuilding dev docker
-sudo docker build . -f "docker/dev/Dockerfile" -t "dessalines/lemmy:$BRANCH"
+sudo docker build ../../ -f . -t "dessalines/lemmy:$BRANCH"
sudo docker push "dessalines/lemmy:$BRANCH"
# Run the playbook
-pushd ../lemmy-ansible
+pushd ../../../lemmy-ansible
ansible-playbook -i test playbooks/site.yml
popd