ondras / cyp

Control Your Player: a Web-based MPD client
MIT License
95 stars 20 forks source link

Add nginx config example to README #25

Closed matheusfillipe closed 2 years ago

matheusfillipe commented 2 years ago

Very nice project! Solution for #17 and might be nice in case someone else wants to know:

location /music/ {
    proxy_pass_header  Set-Cookie;
    proxy_set_header   Host               $host;
    proxy_set_header   X-Real-IP          $remote_addr;
    proxy_set_header   X-Forwarded-Proto  $scheme;
    proxy_set_header   X-Forwarded-For    $proxy_add_x_forwarded_for;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    proxy_pass http://localhost:8080/;
  }
ondras commented 2 years ago

Thanks @matheusfillipe ! I added that to README in https://github.com/ondras/cyp/commit/148d215f43b8de5932ced9967db41854165f090f