Skip to content

Configuration fix for Synology DSM 6 reverse proxy to handle websocket

Notifications You must be signed in to change notification settings

zech/dsm-reverse-proxy-websocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

dsm-reverse-proxy-websocket

Configuration fix for Synology DSM 6 reverse proxy to handle websocket

BACKUP YOUR portal.mustache BEFORE MODIFYING IT!

You need to edit the file /usr/syno/share/nginx/Portal.mustache to add the followings in the Location section:

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;

Then restart the httpd with:

sudo synoservicecfg --restart nginx

This will restart ALL http service running, not only reverse proxy, as a single instance of NGinX runs everything.

A modified Portal.mustache is provided in this repo (warning: based on DSM 6.1.6-15266).

Known DSM upgrade impacts on the Portal.mustache file

In bold versions overwriting the Portal.mustache

  • 6.2-23739 : overwrites the Portal.mustache
  • 6.1.7-15284 : overwrites the Portal.mustache
  • 6.1.6-15266-1 : leaves the Portal.mustache file unchange
  • 6.1.6-15266 : overwrites the Portal.mustache
  • 6.1.3-15152-1 : leaves the Portal.mustache file unchange
  • 6.1.3-15152 : overwrites the Portal.mustache
  • 6.1.2-15132 : overwrites the Portal.mustache
  • 6.1.1-15101-4 : leaves the Portal.mustache file unchange
  • 6.1.1-15101 : overwrites the Portal.mustache

About

Configuration fix for Synology DSM 6 reverse proxy to handle websocket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%