|
|
|
@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
order jwtauth before basicauth
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:80 {
|
|
|
|
:80 {
|
|
|
|
encode zstd gzip
|
|
|
|
encode zstd gzip
|
|
|
|
|
|
|
|
|
|
|
|
@ -8,16 +12,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
redir /openapi.json /api/v1/openapi.json permanent
|
|
|
|
redir /openapi.json /api/v1/openapi.json permanent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handle_path /martin/* {
|
|
|
|
handle_path /martin/* {
|
|
|
|
rewrite * {path}
|
|
|
|
rewrite * {path}
|
|
|
|
reverse_proxy martin:3000
|
|
|
|
reverse_proxy martin:3000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@is_admin {
|
|
|
|
|
|
|
|
vars {http.auth.user.id} "demo"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handle_path /pgweb/* {
|
|
|
|
handle_path /pgweb/* {
|
|
|
|
|
|
|
|
jwtauth {
|
|
|
|
|
|
|
|
sign_key iYg7wB+sPihtjz50iJTsD0XmOeUwKy2TJtfNLcqFRM8=
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rewrite * {path}
|
|
|
|
rewrite * {path}
|
|
|
|
reverse_proxy pgweb:8081
|
|
|
|
reverse_proxy @is_admin pgweb:8081
|
|
|
|
|
|
|
|
redir /login/ 401
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handle_path /static/previews/* {
|
|
|
|
handle_path /static/previews/* {
|
|
|
|
@ -32,5 +43,4 @@
|
|
|
|
try_files {path}.html {path} /index.html
|
|
|
|
try_files {path}.html {path} /index.html
|
|
|
|
file_server
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|