web: allow to configure shard name using env variable

This commit is contained in:
Prayag Singh
2021-04-15 15:08:56 +05:30
committed by GitHub
parent a6853ef5f7
commit 78699fe65a
3 changed files with 14 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ error_page 404 /static/404.html;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
{{ if .Env.DEPLOYMENTINFO_SHARD }}
add_header X-Jitsi-Shard {{ .Env.DEPLOYMENTINFO_SHARD }};
{{ end }}
location = /config.js {
alias /config/config.js;
}