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
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.