Docker updates

This commit is contained in:
Darren Clarke 2023-02-10 12:14:44 +00:00
parent e556cdceba
commit bef49705a4
8 changed files with 50 additions and 34 deletions

View file

@ -10,7 +10,7 @@ export const ZammadWrapper: FC<ZammadWrapperProps> = ({
url,
hideSidebar = true,
}) => {
const [display, setDisplay] = useState("none");
const [display, setDisplay] = useState("inherit");
return (
<Iframe

View file

@ -12,12 +12,16 @@ module.exports = {
},
];
},
rewrites: async () => ({
fallback: [
async rewrites() {
return [
{
source: "/:path*",
destination: "/zammad/:path*",
source: "/zammad",
destination: `http://link-shell-zammad-proxy-1:3000`,
},
],
}),
{
source: "/zammad/:path*",
destination: `http://link-shell-zammad-proxy-1:3000/:path*`,
},
];
},
};

View file

@ -21,7 +21,7 @@ const Home = () => (
width: "100%",
}}
>
<ZammadWrapper url="http://localhost:3000/zammad/#dashboard" />
<ZammadWrapper url="https://8003-digiresilienc-linkshell-c2tqwgcccbs.ws-eu86.gitpod.io/zammad/#dashboard" />
</Grid>
</Grid>
</Layout>