Compare commits

..

4 Commits

Author SHA1 Message Date
18a0f8621a 🔧 Fix for the hostname env var when running in Docker 2023-05-16 12:35:18 -04:00
b8fb179ac6 🔧 Miscellaneous Fixes (#79)
* ️ Config key to expose hostname in a Docker context

* 🔧 Miscellaneous Fixes
2023-05-15 16:16:26 -04:00
94692bb6d4 71 dockerfile update (#75)
* 🐳 Fixes to the Dockerfile

* 🚢 Updated port number for UI

*  Removed the param serialization from axios calls
2023-05-15 16:13:40 -04:00
4b795aca5d ️ Config key to expose hostname in a Docker context (#77) 2023-04-27 11:38:50 -04:00
4 changed files with 12 additions and 13 deletions

View File

@@ -14,6 +14,6 @@ RUN yarn --ignore-engines
COPY . .
EXPOSE 3050
EXPOSE 5173
ENTRYPOINT [ "npm", "start" ]

View File

@@ -1,7 +1,6 @@
import axios from "axios";
import rateLimiter from "axios-rate-limit";
import { setupCache } from "axios-cache-interceptor";
import qs from "qs";
import {
CV_SEARCH_SUCCESS,
CV_API_CALL_IN_PROGRESS,

View File

@@ -1,4 +1,4 @@
import React, { useMemo, useCallback, ReactElement } from "react";
import React, { useCallback, ReactElement } from "react";
import { isNil, isEmpty } from "lodash";
import { IExtractedComicBookCoverFile, RootState } from "threetwo-ui-typings";
import { importToDB } from "../actions/fileops.actions";

View File

@@ -12,68 +12,68 @@ console.log(import.meta);
export const CORS_PROXY_SERVER_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "8050",
apiPath: "/",
});
export const COMICVINE_SERVICE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3080",
apiPath: "/api/comicvine",
});
export const METRON_SERVICE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3080",
apiPath: "/api/metron",
});
export const API_BASE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "8050",
apiPath: "/api",
});
export const LIBRARY_SERVICE_HOST = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3000",
apiPath: ``,
});
export const LIBRARY_SERVICE_BASE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3000",
apiPath: "/api/library",
});
export const SEARCH_SERVICE_BASE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3000",
apiPath: "/api/search",
});
export const SETTINGS_SERVICE_BASE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3000",
apiPath: "/api/settings",
});
export const IMAGETRANSFORMATION_SERVICE_BASE_URI = hostURIBuilder({
protocol: "http",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3000",
apiPath: "/api/imagetransformation",
});
export const SOCKET_BASE_URI = hostURIBuilder({
protocol: "ws",
host: import.meta.env.UNDERLYING_HOSTNAME || "localhost",
host: import.meta.env.VITE_UNDERLYING_HOSTNAME || "localhost",
port: "3001",
apiPath: `/`,
});