diff --git a/configs/development.ini b/configs/development.ini --- a/configs/development.ini +++ b/configs/development.ini @@ -125,7 +125,7 @@ rhodecode.api.url = /_admin/api full_stack = true -## Return gzipped responses +## return gzipped responses from Rhodecode (static files/application) gzip_responses = true # autogenerate javascript routes file on startup diff --git a/configs/production.ini b/configs/production.ini --- a/configs/production.ini +++ b/configs/production.ini @@ -99,8 +99,8 @@ use = egg:rhodecode-enterprise-ce full_stack = true -## Serve static files via RhodeCode, disable to serve them via HTTP server -static_files = true +## return gzipped responses from Rhodecode (static files/application) +gzip_responses = true # autogenerate javascript routes file on startup generate_js_files = false diff --git a/docs/admin/apache-reverse-proxy.rst b/docs/admin/apache-reverse-proxy.rst --- a/docs/admin/apache-reverse-proxy.rst +++ b/docs/admin/apache-reverse-proxy.rst @@ -9,9 +9,9 @@ Here is a sample configuration file for ServerName hg.myserver.com ServerAlias hg.myserver.com - ## uncomment root directive if you want to serve static files by - ## Apache requires static_files = false in .ini file - #DocumentRoot /path/to/rhodecode/installation/public + ## uncomment to serve static files by Apache + ## ProxyPass /_static ! + ## Alias /_static /path/to/rhodecode/installation/public Order allow,deny diff --git a/docs/admin/nginx-config-example.rst b/docs/admin/nginx-config-example.rst --- a/docs/admin/nginx-config-example.rst +++ b/docs/admin/nginx-config-example.rst @@ -56,11 +56,12 @@ Use the following example to configure N ssl_ciphers DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:EDH-RSA-DES-CBC3-SHA:AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5; ssl_prefer_server_ciphers on; - ## uncomment root directive if you want to serve static files by nginx - ## requires static_files = false in .ini file - # root /path/to/rhodecode/installation/public; + include /etc/nginx/proxy.conf; - include /etc/nginx/proxy.conf; + ## uncomment to serve static files by nginx + # location /_static { + # alias /path/to/rhodecode/installation/public; + # } location / { try_files $uri @rhode;