require("dotenv").config();

const tamServer = process.env.TAM_SERVER || "example.teleniasoftware.com";
console.log("Deploying from server ->", tamServer);

// server configuratore
const occServer = "https://" + (process.env.OCC_SERVER || tamServer);

const PROXY_CONFIG = {
  "/clientproxy/login": {
    target: "https://" + tamServer,
    ws: false,
    secure: false,
  },
  "/clientproxy": {
    target: "https://" + tamServer,
    ws: false,
    secure: false,
  },
  "/clientproxy/ws": {
    target: "https://" + tamServer,
    ws: true,
    secure: false,
  },
};

module.exports = PROXY_CONFIG;
