Code Monkey home page Code Monkey logo

Comments (3)

hoytech avatar hoytech commented on July 18, 2024

Hi! There is a community-contributed example nginx config here:

https://github.com/hoytech/strfry/blob/master/docs/DEPLOYMENT.md#sample-nginx-starter-config

It may need a small amount of tweaking, but it should be pretty close, depending on if you have special requirements. Let us know if you hit any issues!

from strfry.

theAkito avatar theAkito commented on July 18, 2024

@hoytech

Thank you for the information. 🙂

I set this up, triple checked & the Let's Encrypt provided by my NGINX instance worked flawlessly. All works regarding NGINX.

Now, when I try to reach the service, I get a Bad Gateway response. Triple checked the port etc. in the NGINX configuration & all is fine.

Then, I curled the service itself, without going through NGINX & getting the following error.

curl: (56) Recv failure: Connection reset by peer

Apparently, something's wrong with the service. Not sure what. Didn't really change anything in strfry.conf, either, except the server info.

According to my research, there should be a landing page shown, which tells the user to connect with a Nostr client, instead.


Nevermind. When running the relay from inside Docker, I obviously need to change the binding from 127.0.0.1 to 0.0.0.0. Forgot about that!

The landing page works now! 😁

from strfry.

theAkito avatar theAkito commented on July 18, 2024

This NGINX configuration example was enough for me. Would be wise to extend it for other, less experienced, users, at some point, though. 😄

from strfry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.