From 658576e61271d28fc734ed3d49ee17522fdfbd6f Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 24 Jul 2024 17:54:52 +0200 Subject: [PATCH] Nginx --- compose/nginx/mn.conf.d/local.conf | 8 ++++++++ compose/nginx/tn.conf.d/local.conf | 8 ++++++++ compose/strfry/sync.sh | 1 + 3 files changed, 17 insertions(+) diff --git a/compose/nginx/mn.conf.d/local.conf b/compose/nginx/mn.conf.d/local.conf index 0c14f91..ff8086f 100644 --- a/compose/nginx/mn.conf.d/local.conf +++ b/compose/nginx/mn.conf.d/local.conf @@ -52,6 +52,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; } } diff --git a/compose/nginx/tn.conf.d/local.conf b/compose/nginx/tn.conf.d/local.conf index aed3905..2d906a1 100644 --- a/compose/nginx/tn.conf.d/local.conf +++ b/compose/nginx/tn.conf.d/local.conf @@ -49,6 +49,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; } } diff --git a/compose/strfry/sync.sh b/compose/strfry/sync.sh index debbd26..fd5af18 100644 --- a/compose/strfry/sync.sh +++ b/compose/strfry/sync.sh @@ -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