From f1e1e806c2d5aad672ebb71c7d015aee29d37464 Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:23:21 +0300 Subject: [PATCH] Update 000-default.conf --- files/nginx/conf/000-default.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/nginx/conf/000-default.conf b/files/nginx/conf/000-default.conf index 0ae1cdd..c64ea3d 100644 --- a/files/nginx/conf/000-default.conf +++ b/files/nginx/conf/000-default.conf @@ -90,6 +90,14 @@ server { proxy_set_header Connection "upgrade"; } + location /docs/ { + proxy_pass http://127.0.0.1:3000/docs/; + proxy_set_header Host $http_host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } + if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE)$ ) { return 405;