Merge pull request #8 from KoalaSat/use-nostr-as-cache-system

Nginx
This commit is contained in:
KoalaSat
2024-07-24 15:56:34 +00:00
committed by GitHub
3 changed files with 17 additions and 0 deletions

View File

@ -67,6 +67,14 @@ server {
limit_req zone=tenpersec burst=10;
}
location /nostr {
proxy_pass http://127.0.0.1:7777;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location = /favicon.ico { access_log off; log_not_found off; }
}

View File

@ -64,6 +64,14 @@ server {
proxy_set_header Host $host;
}
location /nostr {
proxy_pass http://127.0.0.1:7777;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location = /favicon.ico { access_log off; log_not_found off; }
}

View File

@ -2,6 +2,7 @@
filters='{"kinds":[38383]}'
/app/strfry --config /etc/strfry.conf sync wss://nostr.satstralia.com --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://satstraoq35jffvkgpfoqld32nzw2siuvowanruindbfojowpwsjdgad.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://4t4jxmivv6uqej6xzx2jx3fxh75gtt65v3szjoqmc4ugdlhipzdat6yd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1