Fix file picker and notification proxy URLs

This commit is contained in:
Simon Larsen
2023-12-25 13:39:11 +00:00
parent 284752631e
commit 15850380c4
2 changed files with 5 additions and 7 deletions

View File

@@ -112,9 +112,7 @@ const FilePicker: FunctionComponent<ComponentProps> = (
modelType: FileModel,
requestOptions: {
overrideRequestUrl:
CommonURL.fromURL(FILE_URL).addRoute(
'/file'
),
CommonURL.fromURL(FILE_URL),
},
})) as HTTPResponse<FileModel>;
filesResult.push(result.data as FileModel);

View File

@@ -338,7 +338,7 @@ server {
proxy_pass http://otel-collector;
}
location /notification/ {
location /notification {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -348,7 +348,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://dashboard-api/api/notification/;
proxy_pass http://dashboard-api/api/notification;
}
location /ingestor {
@@ -433,7 +433,7 @@ server {
proxy_pass http://api-reference;
}
location /file/ {
location /file {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -443,7 +443,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://dashboard-api/api/file/;
proxy_pass http://dashboard-api/api/file;
client_max_body_size 50M;
}