Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

okay I'm getting a bit further with casvisor but it keeps trying to direct me to casdoor which I'm not intending to use.

how do I get it to stop looking to direct me to any oauth Im going to be the only user.

I have db and guacd up but discords char limit is too small.

services:
  casvisor:
    image: git.nixc.us/nixius/casvisor:production-casvisor
    depends_on:
      - db
    environment:
      RUNNING_IN_DOCKER: "true"
      DB_DRIVER: mysql
      DB_HOST: db
      DB_PORT: 3306
      DB_USER: root
      DB_PASSWORD: ***
      DB_NAME: casvisor
    volumes:
      - /mnt/tank/persist/nixc.us/casvisor/production/conf:/home/casvisor/conf
    networks:
      - traefik
      - default
    deploy:
      placement:
        constraints:
          - node.hostname == macmini14
      labels:
        homepage.group: apps
        homepage.name: casvisor
        homepage.href: https://casvisor.nixc.us/
        homepage.description: casvisor
        traefik.enable: "true"
        traefik.http.routers.production-casvisor_casvisor.rule: "Host(`casvisor.nixc.us`)"
        traefik.http.routers.production-casvisor_casvisor.entrypoints: "websecure"
        traefik.http.routers.production-casvisor_casvisor.tls: "true"
        traefik.http.routers.production-casvisor_casvisor.tls.certresolver: "letsencryptresolver"
        traefik.http.routers.production-casvisor_casvisor.service: "production-casvisor_casvisor"
        traefik.http.services.production-casvisor_casvisor.loadbalancer.server.port: "8080"
        traefik.docker.network: "traefik"
        traefik.http.routers.production-casvisor_casvisor.middlewares: 'authelia_authelia@docker'
      update_config:
        order: stop-first
        failure_action: rollback
        delay: 30s
        parallelism: 1
      restart_policy:
        condition: on-failure

cat app.conf

appname = casvisor
httpport = 8080
runmode = dev
SessionOn = true
copyrequestbody = true
driverName = mysql
dataSourceName = root:123456@tcp(casvisor_db:3306)/
dbName = casvisor
tableNamePrefix =
isDemoMode = true
logPostOnly = true
redisEndpoint =
guacamoleEndpoint = casvisor_guacd:4822
dbgateEndpoint = http://0.0.0.0:8080
dbgateDir = ../dbgate
casdoorEndpoint =
clientId = a8B9c7D4e6F2g3H1i0J5k4L6m7N8o9P0
clientSecret = ***
casdoorOrganization =
casdoorApplication =
gatewayEndpoint =
vaultEndpoint =
vaultToken =
3views
2users
1 minread

the auth (powered by casdoor) is mandatory

if you don't want to mess with casdoor, just keep using the demo site (door.casdoor.com), login with admin, it's free and guaranteed to be always online

@hsluoyz what country is the demo instance hosted in? Turns out I had to do some magic to get casdoor's demo to load since its in singapore but like I don't see how I would get the demo instance to work with my casvisor so I guess I'm learning casdoor maybe.

I was under the impression you could just use Casvisor without having to use any auth say for example I just intended to use it in my lan only.

1 / 5
Jul 2024