OpenCSGs / csghub

CSGHub is an open-source large model platform just like on-premise version of Hugging Face. You can easily manage models and datasets, deploy model applications and setup model finetune or inference jobs with user interface. CSGHub also provides Python SDK with full compatibility of hf sdk. Join us together to build a safer and more open platform⭐️
https://opencsg.com
2.89k stars 450 forks source link

login page empty #673

Open zhaoxinhua opened 3 weeks ago

zhaoxinhua commented 3 weeks ago

docker信息 image

谷歌浏览器提示:

{
  "status": "error",
  "msg": "Redirect URI: http://121.37.3.254:80/api/v1/callback/casdoor doesn't exist in the allowed Redirect URI list",
  "data": null,
  "data2": null
}

edge浏览器提示

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <meta
      name="description"
      content="Casdoor - An Identity and Access Management (IAM) / Single-Sign-On (SSO) platform with web UI supporting OAuth 2.0, OIDC, SAML and CAS"
    />
    <link
      rel="apple-touch-icon"
      href="https://cdn.casbin.org/img/favicon.png"
    />
    <link
      rel="manifest"
      href="https://cdn.casbin.org/site/casdoor/manifest.json"
    />
    <title>Casdoor</title>
    <script defer="defer" src="/static/js/main.cd46c836.js"></script>
    <link href="/static/css/main.b5f23b34.css" rel="stylesheet" />
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
  </body>
</html>
hsluoyz commented 3 weeks ago

@zhaoxinhua like it said, you should add http://121.37.3.254:80/api/v1/callback/casdoor to your Casdoor application's Redirect URIs, a similar docs: https://casdoor.org/docs/integration/C++/Nginx/#configuring-casdoor