https://netmaker.org logo
Protect Dashboard
# netmaker
b
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
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
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.
7 Views