From ba9a7a2670e91fe8b9391aa7415c1baa9d7853d7 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sun, 16 Feb 2025 13:37:17 +0100 Subject: [PATCH] Create @robosats.org --- nginx/conf/nginx.conf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index 9e03b94..e76a01d 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -92,6 +92,16 @@ server { location / { return 301 https://learn.robosats.org$request_uri; } + + location / { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:4000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } } server { @@ -104,11 +114,6 @@ server { ssl_certificate /etc/nginx/ssl/live/learn.robosats.org/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/live/learn.robosats.org/privkey.pem; - location /.well-known/nostr.json { - alias /nostr/nostr.json; - default_type application/json; - } - location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;