Skip to content

Commit

Permalink
update proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Oct 17, 2023
1 parent f924161 commit 3b775a7
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,44 @@ module.exports = {
async rewrites() {
return [
{
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
},
],
source: '/',
destination: '/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy/' // Proxy to Backend
destination: '/api/v1/namespaces/sammwise/services/http%3sammwise%380/proxy' // Proxy to Backend
},
{
source: '/about',
destination: '/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy/about' // Proxy to Backend
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
},
],
source: '/api/:path*/about',
destination: '/api/v1/namespaces/sammwise/services/http%3sammwise%380/proxy/about' // Proxy to Backend
},
{
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
},
],
source: '/assessment',
destination: '/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy/assessment' // Proxy to Backend
destination: '/api/v1/namespaces/sammwise/services/http%3sammwise%380/proxy/assessment' // Proxy to Backend
},
{
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
},
],
source: '/results',
destination: '/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy/results' // Proxy to Backend
destination: '/api/v1/namespaces/sammwise/services/http%3sammwise%380/proxy/results' // Proxy to Backend
}
]
}
Expand Down

0 comments on commit 3b775a7

Please sign in to comment.