diff --git a/conf/init/nginx_conf_create.py b/conf/init/nginx_conf_create.py index 94826f59c..9937c53b0 100644 --- a/conf/init/nginx_conf_create.py +++ b/conf/init/nginx_conf_create.py @@ -7,7 +7,7 @@ import jinja2 QUAYPATH = os.getenv("QUAYPATH", ".") QUAYDIR = os.getenv("QUAYDIR", "/") QUAYCONF_DIR = os.getenv("QUAYCONF", os.path.join(QUAYDIR, QUAYPATH, "conf")) -STATIC_DIR = os.path.join(QUAYDIR, 'static/') +STATIC_DIR = os.path.join(QUAYDIR, 'static') def write_config(filename, **kwargs): with open(filename + ".jnj") as f: diff --git a/conf/nginx/server-base.conf.jnj b/conf/nginx/server-base.conf.jnj index 9115f04b1..d017c02ea 100644 --- a/conf/nginx/server-base.conf.jnj +++ b/conf/nginx/server-base.conf.jnj @@ -166,7 +166,7 @@ location /c1/ { location /static/ { # checks for static file, if not found proxy to app - alias {{static_dir}}; + alias {{static_dir}}/; error_page 404 /404; }