fix: remote client non-http (#617)

This commit is contained in:
Eli Bosley
2023-04-25 17:27:25 -04:00
committed by GitHub
parent eeb8997064
commit d15860daab

View File

@@ -33,7 +33,7 @@ export const getApiApolloClient = ({ upcApiKey }: { upcApiKey: string }) => {
const nginxPort = getters?.emhttp()?.nginx?.httpPort ?? 80;
graphqlLogger.debug('Internal GraphQL URL: %s', getInternalApiAddress(true, nginxPort));
const httpLink = new HttpLink({
uri: getInternalApiAddress(false, nginxPort),
uri: getInternalApiAddress(true, nginxPort),
fetch,
headers: {
Origin: '/var/run/unraid-cli.sock',