diff --git a/runbot/runbot.py b/runbot/runbot.py
index f4b2f137..f637262a 100644
--- a/runbot/runbot.py
+++ b/runbot/runbot.py
@@ -31,6 +31,7 @@ import werkzeug
import openerp
from openerp import http, SUPERUSER_ID
from openerp.http import request
+from openerp.modules import get_module_resource
from openerp.osv import fields, osv
from openerp.tools import config, appdirs
from openerp.addons.website.models.website import slug
@@ -411,6 +412,7 @@ class runbot_repo(osv.osv):
def _reload_nginx(self, cr, uid, context=None):
settings = {}
settings['port'] = config['xmlrpc_port']
+ settings['runbot_static'] = os.path.join(get_module_resource('runbot', 'static'), '')
nginx_dir = os.path.join(self._root(cr, uid), 'nginx')
settings['nginx_dir'] = nginx_dir
ids = self.search(cr, uid, [('nginx','=',True)], order='id')
diff --git a/runbot/runbot.xml b/runbot/runbot.xml
index 7c752a59..c0b18744 100644
--- a/runbot/runbot.xml
+++ b/runbot/runbot.xml
@@ -692,6 +692,13 @@ http {
location / { proxy_pass http://127.0.0.1:; }
location /longpolling/im/poll { return 404; }
location /longpolling/poll { return 404; }
+ location /runbot/static/ {
+ alias ;
+ autoindex off;
+ location ~ /runbot/static/build/[^/]+/logs/ {
+ autoindex on;
+ }
+ }
}
server {