comty/packages/server/extra-proxies.js
SrGooglo 1b6d1c74a1 Add support for extra proxies via external file
Allows defining custom reverse proxy routes via an `extra-proxies.js`
file at the project root. The Gateway loads these configurations on
startup.

Additionally, the Nginx gateway manager no longer applies default
prefix-stripping rewrites. Explicit `pathRewrite` rules are now
required if prefix stripping is needed for any proxied service,
including those defined externally.
2025-05-12 02:26:40 +00:00

8 lines
193 B
JavaScript

export default {
"/spectrum/*": {
target: process.env.SPECTRUM_API ?? "https://live.ragestudio.net",
pathRewrite: { "^/spectrum/(.*)": "/$1", "^/spectrum": "/" },
websocket: true,
},
}