Skip to content

This is an example setup to be able to override the default html page that comes with the strfry relay and to have a working local relay for experimentation with an easy docker-compose setup

License

Notifications You must be signed in to change notification settings

planetary-social/localstrfry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localstrfry

localstrfry is an example project aimed at demonstrating how to set up and customize a local instance of the strfry relay for the Nostr network using Docker. This project serves as a practical resource for developers and enthusiasts interested in exploring relay customization in a local environment, particularly for those involved with Nostr, a decentralized social network. The setup showcases the integration of Traefik and Nginx for effective service routing and redirection.

Prerequisites

  • Docker and Docker Compose installed on your machine.
  • Basic familiarity with Docker concepts, and Traefik and Nginx configuration.

Installation and Usage

  1. Clone the Repository:

    git clone https://github.com/planetary-social/localstrfry.git
  2. Navigate to the Project Directory:

    cd localstrfry
  3. Start the Relay using Docker Compose:

    • This command downloads necessary images and starts the services defined in the `docker-compose.yml` file.
    docker-compose up
  4. Accessing the Custom HTML Page:

    • Visit `http://localhost\` to access a custom HTML page, which differs from the default strfry relay page. This page is served by the `redirect-service`, demonstrating the usage of Nginx for content redirection.

Adding SSL/TLS with Traefik

To secure your relay with SSL/TLS, follow the Traefik HTTPS setup instructions. This involves configuring Traefik with a certificate resolver for automatic SSL certificate generation and renewal, making your relay suitable for a more secure, production-oriented environment.

Contributing

Contributions to localstrfry are welcome. If you have ideas for improvements or additional features, please follow the standard GitHub pull request process.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is an example setup to be able to override the default html page that comes with the strfry relay and to have a working local relay for experimentation with an easy docker-compose setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published