Reverse Proxy settings and Nginx.conf file

Request for Assistance: Adding custom headers to nginx.conf for Synology System


I hope this email finds you well. I’m reaching out to seek your expert advice on Synology systems, specifically regarding a video you posted that didn’t cover the topic of custom headers. I believe you are highly knowledgeable in this area and can provide valuable insights.

Currently, I’m facing difficulty adding the following line to my nginx.conf file:

Copy code

large_client_header_buffers 4 256k;

Despite my attempts, I have not been successful in achieving the desired outcome. I noticed that in your video about Reverse Proxy, there were various settings in the nginx.conf file that were not explained in detail. Therefore, I was curious to know if custom headers were mentioned and whether they can be utilized for my purpose.

Could you kindly guide me on how to add the mentioned line to my nginx.conf file? Additionally, I would appreciate it if you could shed some light on the concept of custom headers and how they function. If it is indeed possible to implement custom headers, I would be grateful for any instructions or best practices you can provide.

Thank you in advance for your time and expertise. I look forward to your response.

Best regards,

So it looks like the config you are trying to add is not exposed in the reverse proxy UI within DSM so you have two options:

  1. You can SSH into the NAS, and find the config file for nginx and do your modifications there, these may or may not survive updates so you may have to reapply it in the future. But this should work
  2. Instead you can build a nginx reverse proxy docker container and use that. That way you don’t break anything within the NAS accidentally
1 Like