mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Fix file picker and notification proxy URLs
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user