From 66124370a6baf662e1b8a03d7ba4da52d4f75a94 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 21 Oct 2019 18:49:47 +0200 Subject: [PATCH] Added json extension to the list of known static files that have to fall back to 404 on nginx --- .github/ISSUE_TEMPLATE/Bug.md | 1 + .github/ISSUE_TEMPLATE/Question_Support.md | 1 + config/docker/nginx.conf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/Bug.md b/.github/ISSUE_TEMPLATE/Bug.md index 182df2be..93e61ad4 100644 --- a/.github/ISSUE_TEMPLATE/Bug.md +++ b/.github/ISSUE_TEMPLATE/Bug.md @@ -16,6 +16,7 @@ With that said, please fill in the information requested next. More information #### Shlink web client version * Version: x.y.z +* How do you use shlink-web-client: app.shlink.io|Docker image|self-hosted #### Summary diff --git a/.github/ISSUE_TEMPLATE/Question_Support.md b/.github/ISSUE_TEMPLATE/Question_Support.md index 8e75a1c1..4fdd085c 100644 --- a/.github/ISSUE_TEMPLATE/Question_Support.md +++ b/.github/ISSUE_TEMPLATE/Question_Support.md @@ -16,6 +16,7 @@ With that said, please fill in the information requested next. More information #### Shlink web client version * Version: x.y.z +* How do you use shlink-web-client: app.shlink.io|Docker image|self-hosted #### Summary diff --git a/config/docker/nginx.conf b/config/docker/nginx.conf index f9b2b816..ddc24af8 100644 --- a/config/docker/nginx.conf +++ b/config/docker/nginx.conf @@ -5,7 +5,7 @@ server { index index.html; # When requesting static paths with extension, try them, and return a 404 if not found - location ~ .+\.(css|js|html|png|jpg|jpeg|gif|bmp|ico|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) { + location ~ .+\.(css|js|html|png|jpg|jpeg|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) { try_files $uri $uri/ =404; }