From 25669abb4085f16b2e08bc2f0017b6097f0b4457 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 25 Aug 2023 13:19:38 +0100 Subject: [PATCH] fix linkshortner link --- Dashboard/src/Components/Form/Monitor/MonitorCriteria.tsx | 5 +++-- Nginx/default.conf.template | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dashboard/src/Components/Form/Monitor/MonitorCriteria.tsx b/Dashboard/src/Components/Form/Monitor/MonitorCriteria.tsx index 9b183c03dd..41563d22a6 100644 --- a/Dashboard/src/Components/Form/Monitor/MonitorCriteria.tsx +++ b/Dashboard/src/Components/Form/Monitor/MonitorCriteria.tsx @@ -90,8 +90,9 @@ const MonitorCriteriaElement: FunctionComponent = ( MonitorCriteria.fromJSON({ _type: 'MonitorCriteria', value: { - monitorCriteriaInstanceArray: - [...newMonitorCriterias], + monitorCriteriaInstanceArray: [ + ...newMonitorCriterias, + ], }, }) ); diff --git a/Nginx/default.conf.template b/Nginx/default.conf.template index b299d824aa..31b37b5b24 100644 --- a/Nginx/default.conf.template +++ b/Nginx/default.conf.template @@ -347,7 +347,7 @@ server { client_max_body_size 50M; } - location /l { # Short URL for Link Shortener + location /l/ { # Short URL for Link Shortener proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -357,7 +357,7 @@ server { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - proxy_pass http://link-shortener; + proxy_pass http://link-shortener/; client_max_body_size 50M; }