mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 17:47:01 +01:00
Add one more fix to nginx.conf for i18n
This commit is contained in:
parent
2ef87603fd
commit
352afbc029
1 changed files with 7 additions and 2 deletions
|
@ -31,10 +31,15 @@
|
||||||
add_header X-Frame-Options $frameOptions;
|
add_header X-Frame-Options $frameOptions;
|
||||||
add_header Content-Security-Policy $contentSecurityPolicy;
|
add_header Content-Security-Policy $contentSecurityPolicy;
|
||||||
|
|
||||||
# fallback
|
# fallback for all URLs i.e. /address/foo /tx/foo /block/000
|
||||||
location / {
|
location / {
|
||||||
#return 302 https://mempool.space/$request_uri;
|
#return 302 https://mempool.space/$request_uri;
|
||||||
try_files /$lang/$uri /$lang/$uri/ $uri $uri/ /en-US/$uri /$lang/index.html /en-US/index.html =404;
|
try_files /$lang/$uri /$lang/$uri/ $uri $uri/ /en-US/$uri @index;
|
||||||
|
# /$lang/index.html /en-US/index.html =404;
|
||||||
|
}
|
||||||
|
location @index {
|
||||||
|
add_header Cache-Control must-revalidate;
|
||||||
|
try_files /$lang/index.html /en-US/index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# location block using regex are matched in order
|
# location block using regex are matched in order
|
||||||
|
|
Loading…
Add table
Reference in a new issue