Title
b

brash-egg-2258

12/23/2022, 10:04 PM
Protect Dashboard
How can I modify the following details so it can be used with Netmaker Caddy install? I’m just looking to restrict access to the dashboard. 1. traefik.http.middlewares.nmui-security-1.ipwhitelist.sourcerange=MY_IP 2. traefik.http.routers.netmaker-ui.middlewares=nmui-security@docker and change it to this: traefik.http.routers.netmaker-ui.middlewares=nmui-security-1@docker,nmui-security@docker Question 2: If I also wanted to integrate OAuth provider login, where do I put the below info? AUTH_PROVIDER: xxxxxxx.apps.googleusercontent.com CLIENT_ID: “xxxxxxxxxxx.apps.googleusercontent.com” CLIENT_SECRET: xxxxSecretcharacters SERVER_HTTP_HOST: api.netmaker.MY-DOMAIN FRONTEND_URL: https://dashboard.netmaker.MY-DOMAIN
q

quiet-continent-24852

12/23/2022, 10:13 PM
If you wanted to white list with Caddy, you do something similar to this thread: https://discord.com/channels/825071750290210916/825071821594034196/1050892447091281981 As for setting up an OAuth provider, please refer to https://docs.netmaker.org/oauth.html
so AUTH_PROVIDER="google" CLIENT_ID="" CLIENT_SECRET=""
hope that helps
b

brash-egg-2258

12/24/2022, 3:25 AM
Thanks for shedding some light on this. The IP whitelisting with Caddy is really not that straight forward compared to Traefik. I'll try and see If I can get the AUTH provider setup. Thanks again.