[Ethereum] How to run a swarm gateway

go-ethereumnodesswarm

I see there are web-gateways to enable early access to swarm hosted content.

I read they are more down then running, I am wondering, can I also run a swarm gateway? If so, how?

Is it just a modified geth as swarm node I have to run? Is there anything else I need for serving the content to a webserver, e.g., nginx?

Best Answer

The reddit post you link to is rather old. Why don't you try http://swarm-gateways.net now? We have a brand new cluster backing the gateway.

It is true that it has been down a lot in the past, but that is because swarm is under heavy development. It will only get more stable with time.

To run your own swarm node, simply follow the swarm guide: https://swarm-guide.readthedocs.io/en/latest/ This will give your own private window into the swarm at localhost:8500 If you want to run a public gateway, just run an nginx reverse proxy for localhost:8500 :)

server {
    server_name my-swarm-gateways.net ;
    listen 80 ;
    location / {
       proxy_pass http://localhost:8500;
    }
}
Related Topic