feat: block cwmp access in frontend + add cwmp profile to compose

This commit is contained in:
leandrofars 2024-04-24 14:37:09 -03:00
parent 9fef8849a1
commit 5322519a1e
3 changed files with 12 additions and 11 deletions

View File

@ -71,7 +71,7 @@ This repository aims to promote the development of a multi-vendor management pla
Run app using <u><b>Docker Compose</b></u>: Run app using <u><b>Docker Compose</b></u>:
<pre> <pre>
user@user-laptop:~$ cd oktopus/deploy/compose user@user-laptop:~$ cd oktopus/deploy/compose
user@user-laptop:~/oktopus/deploy/compose$ COMPOSE_PROFILES=nats,controller,mqtt,stomp,ws,adapter,frontend,portainer docker compose up -d user@user-laptop:~/oktopus/deploy/compose$ COMPOSE_PROFILES=nats,controller,cwmp,mqtt,stomp,ws,adapter,frontend,portainer docker compose up -d
</pre> </pre>
Oktopus deployment in <u><b>Kubernetes</b></u> still is in beta phase: <a href="https://github.com/OktopUSP/oktopus/blob/main/deploy/kubernetes/README.md"> Instructions for Kubernetes deployment</a><p></p> Oktopus deployment in <u><b>Kubernetes</b></u> still is in beta phase: <a href="https://github.com/OktopUSP/oktopus/blob/main/deploy/kubernetes/README.md"> Instructions for Kubernetes deployment</a><p></p>
UI will open at port 3000: UI will open at port 3000:

View File

@ -186,6 +186,7 @@ services:
networks: networks:
usp_network: usp_network:
ipv4_address: 172.16.235.16 ipv4_address: 172.16.235.16
profiles: [cwmp]
networks: networks:
usp_network: usp_network:

View File

@ -97,18 +97,18 @@ export const OverviewLatestOrders = (props) => {
</SeverityPill> </SeverityPill>
</TableCell> </TableCell>
<TableCell> <TableCell>
<SvgIcon { order.Status == 2 && (order.Mqtt == 0 && order.Websockets == 0 && order.Stomp == 0) ? <span></span>: <SvgIcon
fontSize="small" fontSize="small"
sx={{cursor: order.Status == 2 && 'pointer'}} sx={{cursor: order.Status == 2 && 'pointer'}}
onClick={()=>{ onClick={()=>{
if (order.Status == 2){ if (order.Status == 2){
router.push("devices/"+order.SN+"/discovery") router.push("devices/"+order.SN+"/discovery")
}
} }
} }
} >
> <ArrowTopRightOnSquareIcon />
<ArrowTopRightOnSquareIcon /> </SvgIcon>}
</SvgIcon>
</TableCell> </TableCell>
</TableRow> </TableRow>
); );