[{"data":1,"prerenderedAt":1288},["ShallowReactive",2],{"navigation_docs":3,"-run-doctor":613,"-run-doctor-surround":1285},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":58,"body":615,"description":635,"extension":1279,"links":1280,"meta":1281,"navigation":1282,"path":59,"seo":1283,"stem":60,"__hash__":1284},"docs\u002F2.run\u002F12.doctor.md",{"type":616,"value":617,"toc":1274},"minimark",[618,626,629,686,707,712,1071,1079,1083,1097,1105,1170,1174,1270],[619,620,621,625],"p",{},[622,623,624],"code",{},"doctor"," checks what an instance needs to run and prints one report. Run it after setting an instance up, after\nchanging its environment, or when something is wrong and you don't know where to start. It only reads: it writes,\nstores or changes nothing, and it never prints a secret, not even part of one (decision 0007 point 13).",[619,627,628],{},"Run it where the API runs, with the API's environment, in each container you want checked (the admin, public and\nworker containers each have their own):",[630,631,636],"pre",{"className":632,"code":633,"language":634,"meta":635,"style":635},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","node console\u002Fdoctor.mjs\ndocker exec \u003Capi container> node console\u002Fdoctor.mjs --json\n","bash","",[622,637,638,651],{"__ignoreMap":635},[639,640,643,647],"span",{"class":641,"line":642},"line",1,[639,644,646],{"class":645},"sBMFI","node",[639,648,650],{"class":649},"sfazB"," console\u002Fdoctor.mjs\n",[639,652,654,657,660,664,667,670,674,677,680,683],{"class":641,"line":653},2,[639,655,656],{"class":645},"docker",[639,658,659],{"class":649}," exec",[639,661,663],{"class":662},"sMK4o"," \u003C",[639,665,666],{"class":649},"api",[639,668,669],{"class":649}," containe",[639,671,673],{"class":672},"sTEyZ","r",[639,675,676],{"class":662},">",[639,678,679],{"class":649}," node",[639,681,682],{"class":649}," console\u002Fdoctor.mjs",[639,684,685],{"class":649}," --json\n",[619,687,688,689,692,693,696,697,700,701,706],{},"In a checkout of SHADE: ",[622,690,691],{},"pnpm doctor"," from the repository root. On a server ",[622,694,695],{},"shade install"," set up, ",[622,698,699],{},"sudo shade doctor"," runs it in the admin container with the proxy's and the clock's checks below (",[702,703,705],"a",{"href":704},"\u002Frun\u002Fown-server#checking","Self-hosting without\nCoolify",").",[708,709,711],"h2",{"id":710},"what-it-checks","What it checks",[713,714,715,731],"table",{},[716,717,718],"thead",{},[719,720,721,725,728],"tr",{},[722,723,724],"th",{},"Check",[722,726,727],{},"Fails when",[722,729,730],{},"Warns when",[732,733,734,747,770,794,809,833,855,874,895,910,922,944,971,983,1000,1015,1029,1046],"tbody",{},[719,735,736,742,745],{},[737,738,739],"td",{},[622,740,741],{},"env",[737,743,744],{},"The API would refuse to start with this environment. It runs the same check the API runs at start and lists every problem, by variable.",[737,746],{},[719,748,749,754,756],{},[737,750,751],{},[622,752,753],{},"secrets",[737,755],{},[737,757,758,759,762,763,766,767,769],{},"Some of the instance's secrets are neither set nor generated yet (with ",[622,760,761],{},"SHADE_SECRETS_DIR","). Otherwise it names which were generated on the first start and which set in the environment, never a value, and asks for a copy of a generated ",[622,764,765],{},"APP_SECRET"," and backup key apart from the server. Without ",[622,768,761],{},", every secret comes from the environment.",[719,771,772,777,792],{},[737,773,774],{},[622,775,776],{},"url-passwords",[737,778,779,780,783,784,787,788,791],{},"A password inside ",[622,781,782],{},"DATABASE_URL",", ",[622,785,786],{},"REDIS_URL"," or another connection URL has characters a URL can't hold as they are, such as ",[622,789,790],{},"@ : \u002F ? # %"," or a space. It names the variable, never the password.",[737,793],{},[719,795,796,801,807],{},[737,797,798],{},[622,799,800],{},"redis",[737,802,803,804,806],{},"Redis doesn't answer a ping within 3 seconds, or ",[622,805,786],{}," is missing.",[737,808],{},[719,810,811,816,831],{},[737,812,813],{},[622,814,815],{},"database-role",[737,817,818,819,821,822,825,826,830],{},"The role in ",[622,820,782],{}," is a superuser, has ",[622,823,824],{},"BYPASSRLS"," or owns a table (SHADE refuses to start with it, ",[702,827,829],{"href":828},"\u002Frun\u002Fown-server#the-databases-roles","The database's roles","). It names each problem.",[737,832],{},[719,834,835,840,852],{},[737,836,837],{},[622,838,839],{},"row-security",[737,841,842,843,847,848,851],{},"A table has row-level security switched off (SHADE refuses to start with it, ",[702,844,846],{"href":845},"\u002Frun\u002Fown-server#row-level-security","Row-level security","), or one of the views modules read accounts and the trash through is missing, shows another column, lost its ",[622,849,850],{},"security_barrier"," or can be written by another role. It names the tables or the problem and how to switch it on again.",[737,853,854],{},"The database couldn't be read.",[719,856,857,862,872],{},[737,858,859],{},[622,860,861],{},"sealed-values",[737,863,864,865,867,868,871],{},"A stored secret opens with neither ",[622,866,765],{}," nor ",[622,869,870],{},"APP_SECRET_PREVIOUS",", or the database can't be reached or read.",[737,873],{},[719,875,876,881,892],{},[737,877,878],{},[622,879,880],{},"backup-key",[737,882,883,884,887,888,891],{},"Backups are on (",[622,885,886],{},"SHADE_BACKUP_URL",") but ",[622,889,890],{},"SHADE_BACKUP_KEY"," is missing or isn't 32 bytes in base64.",[737,893,894],{},"Backups are off.",[719,896,897,902,904],{},[737,898,899],{},[622,900,901],{},"backup-target",[737,903],{},[737,905,906,907,909],{},"Never. It says where the backup target and the bucket's keys come from, by variable: the ",[622,908,901],{}," command's file, the environment (which wins), or both. Never a key.",[719,911,912,917,920],{},[737,913,914],{},[622,915,916],{},"migrations",[737,918,919],{},"Core's migrations aren't all applied, or the database can't be reached or read. It names the pending ones and how to apply them.",[737,921],{},[719,923,924,929,931],{},[737,925,926],{},[622,927,928],{},"kept-copy",[737,930],{},[737,932,933,934,936,937,939,940,943],{},"Nobody has confirmed that a copy of ",[622,935,765],{}," and ",[622,938,890],{},", as they are now, is kept apart from the server (an admin signed in themselves: ",[622,941,942],{},"POST \u002Fapi\u002Fbackups\u002Fkept-copy","), or the database couldn't be read. The public container, which holds no backup key, can't tell and says so.",[719,945,946,951,965],{},[737,947,948],{},[622,949,950],{},"account-route",[737,952,953,956,957,960,961,964],{},[622,954,955],{},"…\u002Fapi\u002Fv1\u002Faccount\u002Fsession"," on ",[622,958,959],{},"SHADE_ACCOUNT_URL"," (else ",[622,962,963],{},"SHADE_API_URL",") answers 404: the proxy sends the account API to the admin container, or strips the prefix on the way there.",[737,966,967,968,706],{},"Nothing answers within 5 seconds, or the answer is a server error, a redirect, an access gate or another server. It is skipped, with a note, when neither address is usable or the address is the machine's own (",[622,969,970],{},"localhost",[719,972,973,978,980],{},[737,974,975],{},[622,976,977],{},"last-upgrade",[737,979],{},[737,981,982],{},"The database couldn't be read. Otherwise it tells the last upgrade the database recorded: the version, when and by which container.",[719,984,985,995,997],{},[737,986,987,990,991,994],{},[622,988,989],{},"clock"," (with ",[622,992,993],{},"--host-clock",")",[737,996],{},[737,998,999],{},"The server's clock is not synchronised, or the host could not tell.",[719,1001,1002,1010,1013],{},[737,1003,1004,990,1007,994],{},[622,1005,1006],{},"proxy-certificates",[622,1008,1009],{},"--proxy",[737,1011,1012],{},"A domain's certificate is not trusted, or ends within 14 days.",[737,1014],{},[719,1016,1017,1024,1027],{},[737,1018,1019,990,1022,994],{},[622,1020,1021],{},"proxy-domains",[622,1023,1009],{},[737,1025,1026],{},"A domain doesn't answer through the proxy, or answers with a server error (5xx).",[737,1028],{},[719,1030,1031,1038,1044],{},[737,1032,1033,990,1036,994],{},[622,1034,1035],{},"proxy-health",[622,1037,1009],{},[737,1039,1040,1043],{},[622,1041,1042],{},"\u002Fhealth"," on the API's domain doesn't answer 200 through the proxy.",[737,1045],{},[719,1047,1048,1055,1069],{},[737,1049,1050,990,1053,994],{},[622,1051,1052],{},"proxy-api",[622,1054,1009],{},[737,1056,1057,1058,1061,1062,1065,1066,1068],{},"The proxy's API answers (Caddy's admin API at port 2019, ",[622,1059,1060],{},"\u002Fconfig\u002F","; Traefik's ",[622,1063,1064],{},"\u002Fapi\u002Frawdata","), or its dashboard port, 8080, answers ",[622,1067,1064],{}," the same way. SHADE's own Caddy keeps the admin API on a socket, so it passes.",[737,1070],{},[619,1072,1073,1075,1076,1078],{},[622,1074,870],{}," is optional: without it, only ",[622,1077,765],{}," is tried.",[708,1080,1082],{"id":1081},"reading-the-report","Reading the report",[619,1084,1085,1086,783,1089,1092,1093,1096],{},"Each check prints one line: ",[622,1087,1088],{},"ok",[622,1090,1091],{},"warning"," or ",[622,1094,1095],{},"failed",", its name, and the reason, with what to do where that helps.\nThe last line sums it up.",[630,1098,1103],{"className":1099,"code":1101,"language":1102,"meta":635},[1100],"language-text","ok       env: The environment is valid: the API starts with it.\nok       url-passwords: The passwords in DATABASE_URL, REDIS_URL are URL-safe.\nok       redis: Redis answered.\nok       sealed-values: APP_SECRET opened 12 of 12 sealed values tried.\nwarning  backup-key: Backups are off: SHADE_BACKUP_URL is not set, so no backups are taken and none needs SHADE_BACKUP_KEY.\nok       backup-target: No backup target: set one in the admin container with node console\u002Fbackup-target.mjs set, or SHADE_BACKUP_URL and the bucket's keys in the environment.\nok       migrations: Core's migrations are applied.\nok       last-upgrade: SHADE 0.1.0, recorded 2026-11-20T09:30:00.000Z by admin@web-1.\nok       account-route: \u002Fapi\u002Fv1\u002Faccount answers on https:\u002F\u002Fexample.org.\nNo check failed; 1 warning.\n","text",[622,1104,1101],{"__ignoreMap":635},[1106,1107,1108,1137,1152,1158],"ul",{},[1109,1110,1111,1117,1118,783,1120,936,1123,1125,1126,1129,1130,1133,1134,706],"li",{},[1112,1113,1114],"strong",{},[622,1115,1116],{},"--proxy \u003Chost:port>"," adds the proxy's checks: it connects to the proxy there and names each domain as a browser\ndoes, the domains of ",[622,1119,963],{},[622,1121,1122],{},"SHADE_ADMIN_URL",[622,1124,959],{}," (https only). ",[622,1127,1128],{},"shade doctor"," passes\n",[622,1131,1132],{},"--proxy caddy:8443","; on another host give the proxy's public address (",[622,1135,1136],{},"--proxy api.example.com:443",[1109,1138,1139,1144,1145,1147,1148,1151],{},[1112,1140,1141],{},[622,1142,1143],{},"--host-clock synced|unsynced|unknown"," reports the server's clock as the host found it: a container can't tell.\n",[622,1146,1128],{}," passes what ",[622,1149,1150],{},"timedatectl"," says.",[1109,1153,1154,1157],{},[1112,1155,1156],{},"The exit code"," is 0 when no check failed, warnings included, and 1 when one did.",[1109,1159,1160,1165,1166,1169],{},[1112,1161,1162],{},[622,1163,1164],{},"--json"," prints ",[622,1167,1168],{},"{ \"ok\": true, \"checks\": [{ \"name\", \"status\", \"message\" }] }"," instead, for scripts and Shade Desk.",[708,1171,1173],{"id":1172},"the-checks-in-more-detail","The checks in more detail",[1106,1175,1176,1216,1237,1253],{},[1109,1177,1178,1182,1183,1186,1187,783,1190,1186,1193,783,1196,1186,1199,783,1202,1186,1205,1208,1209,1186,1212,1215],{},[1112,1179,1180],{},[622,1181,776],{},": percent-encode a password in a URL: ",[622,1184,1185],{},"@"," is ",[622,1188,1189],{},"%40",[622,1191,1192],{},":",[622,1194,1195],{},"%3A",[622,1197,1198],{},"\u002F",[622,1200,1201],{},"%2F",[622,1203,1204],{},"#",[622,1206,1207],{},"%23"," and\n",[622,1210,1211],{},"%",[622,1213,1214],{},"%25",". Or choose a password of letters and digits. The database and Redis keep the password as it is; only the\nway it's written in the URL changes.",[1109,1217,1218,1222,1223,1225,1226,1228,1229,1232,1233,1236],{},[1112,1219,1220],{},[622,1221,861],{}," opens up to 20 rows from each of the stores SHADE seals with ",[622,1224,765],{},": modules' secret\nsettings, the email and other providers' secrets, and webhook signing secrets. It says how many opened out\nof how many it tried, and how many needed ",[622,1227,870],{},". When some did, finish\n",[702,1230,1231],{"href":55},"rotating APP_SECRET"," with ",[622,1234,1235],{},"rotate-secrets",". It doesn't try team members' two-factor\nsecrets or what modules seal in their own tables.",[1109,1238,1239,1243,1244,1246,1247,1249,1250,1252],{},[1112,1240,1241],{},[622,1242,880],{},": the worker takes the backups and the admin container takes one before it migrates, so both need the\nsame ",[622,1245,890],{}," (",[702,1248,82],{"href":83},"). In the public container, which reads no\nbackup setting, this check and ",[622,1251,901],{}," say so and pass.",[1109,1254,1255,1259,1260,1263,1264,1266,1267,1269],{},[1112,1256,1257],{},[622,1258,916],{}," compares core's migrations in this image with those the database applied, as ",[622,1261,1262],{},"status"," does. The\nmodules' migrations run when SHADE starts, after it reads the modules, so ",[622,1265,624],{}," leaves them to ",[622,1268,1262],{},". The\nlast upgrade comes from the update history shown on Settings, Updates.",[1271,1272,1273],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":635,"searchDepth":653,"depth":653,"links":1275},[1276,1277,1278],{"id":710,"depth":653,"text":711},{"id":1081,"depth":653,"text":1082},{"id":1172,"depth":653,"text":1173},"md",null,{},true,{"title":58,"description":635},"4IvMA1Ng4SGq6YcW_646nP8SI_gtQ3gIEWPPj7o5EgQ",[1286,1287],{"title":54,"path":55,"stem":56,"description":635,"children":-1},{"title":62,"path":63,"stem":64,"description":635,"children":-1},1796500157484]