mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
chore: lock the plugin boundary and remove 2.9.0 leftovers
This commit is contained in:
1 parent
6489b62ece
commit
2961297989
399 files changed
+3964
-5627
No files matched your search
+3
-4
@@ -11,10 +11,9 @@ const sslKeyPath = path.join(process.cwd(), "ssl/termix.key");
|
||||
|
||||
const hasSSL = fs.existsSync(sslCertPath) && fs.existsSync(sslKeyPath);
|
||||
const useHTTPS = process.env.VITE_HTTPS === "true" && hasSSL;
|
||||
// Plugins no longer own ports: their HTTP and WebSocket traffic rides 30001
|
||||
// under /plugin-api and /plugin-ws. What is left is core servers that have not
|
||||
// moved yet.
|
||||
const apiProxyPorts = [30001, 30004, 30006, 30010, 30012];
|
||||
// Everything rides the main backend on 30001, plugins included (under
|
||||
// /plugin-api and /plugin-ws).
|
||||
const apiProxyPorts = [30001];
|
||||
const apiProxy = Object.fromEntries(
|
||||
apiProxyPorts.map((port) => [
|
||||
`/__termix_api/${port}`,
|
||||
|
||||
Reference in new issue
Block a user