mirror of
https://github.com/MatteZ02/infra.git
synced 2024-11-09 20:40:18 +00:00
Update 000-default.conf
This commit is contained in:
parent
e4b928ba6d
commit
f1e1e806c2
@ -90,6 +90,14 @@ server {
|
|||||||
proxy_set_header Connection "upgrade";
|
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)$ )
|
if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE)$ )
|
||||||
{
|
{
|
||||||
return 405;
|
return 405;
|
||||||
|
Loading…
Reference in New Issue
Block a user