fixed 502 route in Nginx config
This commit is contained in:
parent
78f77017e8
commit
fb7df1e568
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import jinja2
|
||||||
QUAYPATH = os.getenv("QUAYPATH", ".")
|
QUAYPATH = os.getenv("QUAYPATH", ".")
|
||||||
QUAYDIR = os.getenv("QUAYDIR", "/")
|
QUAYDIR = os.getenv("QUAYDIR", "/")
|
||||||
QUAYCONF_DIR = os.getenv("QUAYCONF", os.path.join(QUAYDIR, QUAYPATH, "conf"))
|
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):
|
def write_config(filename, **kwargs):
|
||||||
with open(filename + ".jnj") as f:
|
with open(filename + ".jnj") as f:
|
||||||
|
|
|
@ -166,7 +166,7 @@ location /c1/ {
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
# checks for static file, if not found proxy to app
|
# checks for static file, if not found proxy to app
|
||||||
alias {{static_dir}};
|
alias {{static_dir}}/;
|
||||||
error_page 404 /404;
|
error_page 404 /404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue