Files
weiyu/deploy/server/docs/assets/js/739d5fdf.64fa6418.js
2025-04-29 17:30:08 +08:00

1 line
2.8 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7161],{666:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>c});const a=JSON.parse('{"id":"manual/admin/auth/login","title":"Login","description":"Custom Server","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/manual/admin/auth/login.md","sourceDirName":"manual/admin/auth","slug":"/manual/admin/auth/login","permalink":"/docs/docs/manual/admin/auth/login","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/manual/admin/auth/login.md","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_label":"Login","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Authentication","permalink":"/docs/docs/category/authentication"},"next":{"title":"Workplace","permalink":"/docs/docs/category/workplace"}}');var i=t(5723),o=t(6246);const s={sidebar_label:"Login",sidebar_position:1},r="Login",l={},c=[{value:"Custom Server",id:"custom-server",level:2}];function d(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"login",children:"Login"})}),"\n",(0,i.jsx)(n.h2,{id:"custom-server",children:"Custom Server"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"Login to admin dashboard"}),"\n",(0,i.jsxs)(n.li,{children:["Click ",(0,i.jsx)(n.code,{children:"Settings"})," -> ",(0,i.jsx)(n.code,{children:"Server Settings"})," in the left menu -> Copy server address"]}),"\n",(0,i.jsx)(n.li,{children:"Find admin/config.json file, default format is as follows:"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-json",children:'{\n "enabled": false, // Change false to true. Only when changed to true, the apiHost and htmlHost below will take effect\n "apiHost": "api.weiyuai.cn", // Important: Change to online api address, like: api.example.com, cannot start with http\n "htmlHost": "www.weiyuai.cn" // Change to static webpage address, like: www.example.com, cannot start with http\n}\n'})}),"\n",(0,i.jsx)(n.p,{children:"Replace apiHost and htmlHost with your server address"})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},6246:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>r});var a=t(2155);const i={},o=a.createContext(i);function s(e){const n=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),a.createElement(o.Provider,{value:n},e.children)}}}]);