Merge pull request #2837 from alecmerdler/QUAY-755

Fix 502 Error Page
This commit is contained in:
Alec Merdler 2017-07-28 12:30:02 -04:00 committed by GitHub
commit ae9bd8b727
2 changed files with 2 additions and 2 deletions

View file

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

View file

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