Update nginx configuration for cache settings and new locales

* Consolidates add_header statements into single top-level section
* Updates locales to match frontend/src/app/app.constants.ts
* Re-orders locales to match locale selector for easier checking
This commit is contained in:
wiz
2021-07-19 18:36:13 +09:00
parent cb90b09a0e
commit f2f5749769
4 changed files with 37 additions and 23 deletions

View File

@@ -93,6 +93,7 @@ http {
~*^nb nb;
~*^pl pl;
~*^pt pt;
~*^ru ru;
~*^sl sl;
~*^fi fi;
~*^sv sv;
@@ -100,7 +101,7 @@ http {
~*^uk uk;
~*^vi vi;
~*^zh zh;
~*^ru ru;
~*^hi hi;
}
map $cookie_lang $lang {
@@ -123,6 +124,7 @@ http {
~*^nb nb;
~*^pl pl;
~*^pt pt;
~*^ru ru;
~*^sl sl;
~*^fi fi;
~*^sv sv;
@@ -130,7 +132,7 @@ http {
~*^uk uk;
~*^vi vi;
~*^zh zh;
~*^ru ru;
~*^hi hi;
}
server {