Docker Compose refactoring
This commit is contained in:
parent
7a2a667aaf
commit
a53a26f4c0
36 changed files with 411 additions and 524 deletions
|
|
@ -6,8 +6,6 @@ First, run the development server:
|
|||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ const checkRewrites = async (request: NextRequestWithAuth) => {
|
|||
const metamigoURL = process.env.METAMIGO_URL ?? "http://metamigo:3000";
|
||||
|
||||
if (request.nextUrl.pathname.startsWith('/proxy/leafcutter')) {
|
||||
return rewriteURL(request, linkBaseURL, leafcutterURL);
|
||||
const headers = { 'X-Leafcutter-Embedded': "true" };
|
||||
return rewriteURL(request, linkBaseURL, leafcutterURL, headers);
|
||||
} else if (request.nextUrl.pathname.startsWith('/proxy/metamigo')) {
|
||||
return rewriteURL(request, linkBaseURL, metamigoURL);
|
||||
} else if (request.nextUrl.pathname.startsWith('/proxy/zammad')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue