Files
weiyu/docs/assets/js/739d5fdf.ce219ebf.js
jack ning fffbecbf17 update
2025-01-03 07:52:00 +08:00

1 line
2.6 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7161],{4455:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>d});const s=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":"/bytedesk/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}}');var a=t(5723),i=t(6246);const o={sidebar_label:"Login",sidebar_position:1},r="Login",l={},d=[{value:"Custom Server",id:"custom-server",level:2}];function c(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"login",children:"Login"})}),"\n",(0,a.jsx)(n.h2,{id:"custom-server",children:"Custom Server"}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsx)(n.li,{children:"Login to admin dashboard"}),"\n",(0,a.jsxs)(n.li,{children:["Click ",(0,a.jsx)(n.code,{children:"Settings"})," -> ",(0,a.jsx)(n.code,{children:"Server Settings"})," in the left menu -> Copy server address"]}),"\n",(0,a.jsx)(n.li,{children:"Find admin/config.json file, default format is as follows:"}),"\n"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.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,a.jsx)(n.p,{children:"Replace apiHost and htmlHost with your server address"})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},6246:(e,n,t)=>{t.d(n,{R:()=>o,x:()=>r});var s=t(2155);const a={},i=s.createContext(a);function o(e){const n=s.useContext(i);return s.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(a):e.components||a:o(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);