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 02551f6ef3
commit 2799ebaf90
4 changed files with 37 additions and 23 deletions

View File

@@ -104,6 +104,7 @@ http {
~*^nb nb;
~*^pl pl;
~*^pt pt;
~*^ru ru;
~*^sl sl;
~*^fi fi;
~*^sv sv;
@@ -111,7 +112,7 @@ http {
~*^uk uk;
~*^vi vi;
~*^zh zh;
~*^ru ru;
~*^hi hi;
}
map $cookie_lang $lang {
@@ -134,6 +135,7 @@ http {
~*^nb nb;
~*^pl pl;
~*^pt pt;
~*^ru ru;
~*^sl sl;
~*^fi fi;
~*^sv sv;
@@ -141,7 +143,7 @@ http {
~*^uk uk;
~*^vi vi;
~*^zh zh;
~*^ru ru;
~*^hi hi;
}
upstream electrs-mainnet {