mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-27 07:03:26 +08:00
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
const proxyHost = process.env.proxyHost || "http://localhost:8080";
|
|
const authHost = process.env.authHost || "http://localhost:3001";
|
|
|
|
exports["default"] = {
|
|
// backend
|
|
"/api/": proxyHost,
|
|
"/signup": proxyHost,
|
|
"/login": proxyHost,
|
|
"/logout": proxyHost,
|
|
"/handle-logout": proxyHost,
|
|
"/refresh": proxyHost,
|
|
"/invalidate": proxyHost,
|
|
"/v2/api-docs/": proxyHost,
|
|
"/robots.txt": proxyHost,
|
|
"/sitemap.xml": proxyHost,
|
|
"/global-sitemap.xml": proxyHost,
|
|
"/*/sitemap.xml": proxyHost,
|
|
"/statusz": proxyHost,
|
|
// auth
|
|
"/avatar": authHost,
|
|
"/oauth/logout": authHost,
|
|
"/oauth2": authHost,
|
|
};
|