Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
GUACAMOLE-1060: Merge documentation for controlling Nginx upload size.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jumper authored Feb 21, 2021
2 parents e80ae19 + d09a86d commit ee84dab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/chapters/reverse-proxy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@
proxy_set_header Connection $http_connection;
<emphasis>proxy_cookie_path /guacamole/ /<replaceable>new-path/</replaceable>;</emphasis>
access_log off;
}</programlisting>
</informalexample>
</section>
<section xml:id="nginx-file-upload-size">
<title>Adjusting file upload limits</title>
<para>When proxying Guacamole through Nginx, you may run into issues with the default
limitations that Nginx places on file uploads (1MB). The errors you receive can
be non-intuitive (permission denied, for example), but may be indicative of these
limits. The <code>client_max_body_size</code> parameter can be set within the
<code>location</code> block to configure the maximum file upload size:</para>
<informalexample>
<programlisting>location /guacamole/ {
proxy_pass http://<replaceable>HOSTNAME</replaceable>:<replaceable>8080</replaceable>/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
<emphasis>client_max_body_size <replaceable>1g</replaceable>;</emphasis>
access_log off;
}</programlisting>
</informalexample>
</section>
Expand Down

0 comments on commit ee84dab

Please sign in to comment.