alexnathanson / solar-protocol

A repository in development for a solar powered network of servers that host a distributed web platform. Project by Tega Brain, Alex Nathanson and Benedetta Piantella. Supported by Eyebeam, Mozilla, and CS&S
http://solarprotocol.net
231 stars 19 forks source link

Document (& test) how to run your own server on a different domain #52

Closed jedahan closed 1 week ago

jedahan commented 1 year ago

show example nginx config something like this:

server {
  listen 12345;

  server_name anne.net;
  root /frontend;
}

server {
  server_name solarprotocol.net;

  location / {
    proxy_pass http://localhost:11221;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }

}
tegacodes commented 1 year ago

Yes - as discussed in our meeting on the 31st - Draft doc that covers from beginning to end, how to customize your server and how to run a personal page with a unique URL.