diff --git a/production/nginx.conf b/production/nginx.conf index 38df6e985..9bdeccc49 100644 --- a/production/nginx.conf +++ b/production/nginx.conf @@ -113,6 +113,12 @@ http { # /api + location = /api { + try_files $uri $uri/ /index.html =404; + } + location = /api/ { + try_files $uri $uri/ /index.html =404; + } location /api/v1/ws { proxy_pass http://127.0.0.1:8999/; proxy_http_version 1.1; @@ -131,6 +137,12 @@ http { # /mainnet/api + location = /mainnet/api { + try_files $uri $uri/ /index.html =404; + } + location = /mainnet/api/ { + try_files $uri $uri/ /index.html =404; + } location /mainnet/api/v1/ws { proxy_pass http://127.0.0.1:8999/; proxy_http_version 1.1; @@ -149,6 +161,12 @@ http { # /liquid/api + location = /liquid/api { + try_files $uri $uri/ /index.html =404; + } + location = /liquid/api/ { + try_files $uri $uri/ /index.html =404; + } location /liquid/api/v1/ws { proxy_pass http://127.0.0.1:8998/; proxy_http_version 1.1; @@ -167,6 +185,12 @@ http { # /testnet/api + location = /testnet/api { + try_files $uri $uri/ /index.html =404; + } + location = /testnet/api/ { + try_files $uri $uri/ /index.html =404; + } location /testnet/api/v1/ws { proxy_pass http://127.0.0.1:8997/; proxy_http_version 1.1; @@ -185,6 +209,12 @@ http { # /bisq + location = /bisq/api { + try_files $uri $uri/ /index.html =404; + } + location = /bisq/api/ { + try_files $uri $uri/ /index.html =404; + } location /bisq/api/v1/ws { proxy_pass http://127.0.0.1:8996/; proxy_http_version 1.1;