config: update ini/config files to account for /_static path

This commit is contained in:
Daniel Dourvaris 2016-07-19 12:22:45 +03:00
parent 724d3c959e
commit 66e6bdfd91
4 changed files with 11 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -9,9 +9,9 @@ Here is a sample configuration file for using Apache as a reverse proxy.
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
<Proxy *>
Order allow,deny

View file

@ -56,12 +56,13 @@ Use the following example to configure Nginx as a your web server.
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;
## uncomment to serve static files by nginx
# location /_static {
# alias /path/to/rhodecode/installation/public;
# }
location / {
try_files $uri @rhode;
}