[{"data":1,"prerenderedAt":402},["ShallowReactive",2],{"selaras-docs-navigation":3,"selaras-docs:\u002Freference\u002Fconfiguration":82},[4,26,43,65],{"title":5,"order":6,"icon":7,"collapse":8,"navBadges":7,"path":9,"stem":10,"children":11,"page":8},"Guide",1,null,false,"\u002Fguide","guide",[12,16,21],{"title":13,"path":14,"stem":15,"order":6,"icon":7,"collapse":8,"navBadges":7},"Getting started","\u002Fguide\u002Fgetting-started","guide\u002Fgetting-started",{"title":17,"path":18,"stem":19,"order":20,"icon":7,"collapse":8,"navBadges":7},"Connect an agent","\u002Fguide\u002Fconnect-an-agent","guide\u002Fconnect-an-agent",2,{"title":22,"path":23,"stem":24,"order":25,"icon":7,"collapse":8,"navBadges":7},"Organize and share","\u002Fguide\u002Fworkspace","guide\u002Fworkspace",3,{"title":27,"order":20,"icon":7,"collapse":8,"navBadges":7,"path":28,"stem":29,"children":30,"page":8},"Authoring","\u002Fauthoring","authoring",[31,35,39],{"title":32,"path":33,"stem":34,"order":6,"icon":7,"collapse":8,"navBadges":7},"Overview","\u002Fauthoring\u002Foverview","authoring\u002Foverview",{"title":36,"path":37,"stem":38,"order":20,"icon":7,"collapse":8,"navBadges":7},"Markdown","\u002Fauthoring\u002Fmarkdown","authoring\u002Fmarkdown",{"title":40,"path":41,"stem":42,"order":25,"icon":7,"collapse":8,"navBadges":7},"HTML and bundles","\u002Fauthoring\u002Fhtml","authoring\u002Fhtml",{"title":44,"order":25,"icon":7,"collapse":8,"navBadges":7,"path":45,"stem":46,"children":47,"page":8},"Deploy","\u002Fdeploy","deploy",[48,52,56,60],{"title":49,"path":50,"stem":51,"order":6,"icon":7,"collapse":8,"navBadges":7},"Docker","\u002Fdeploy\u002Fdocker","deploy\u002Fdocker",{"title":53,"path":54,"stem":55,"order":20,"icon":7,"collapse":8,"navBadges":7},"Cloudflare Workers","\u002Fdeploy\u002Fcloudflare","deploy\u002Fcloudflare",{"title":57,"path":58,"stem":59,"order":25,"icon":7,"collapse":8,"navBadges":7},"Turso and Vercel","\u002Fdeploy\u002Fturso","deploy\u002Fturso",{"title":61,"path":62,"stem":63,"order":64,"icon":7,"collapse":8,"navBadges":7},"Backup and restore","\u002Fdeploy\u002Fbackup","deploy\u002Fbackup",4,{"title":66,"order":64,"icon":7,"collapse":8,"navBadges":7,"path":67,"stem":68,"children":69,"page":8},"Reference","\u002Freference","reference",[70,74,78],{"title":71,"path":72,"stem":73,"order":6,"icon":7,"collapse":8,"navBadges":7},"MCP","\u002Freference\u002Fmcp","reference\u002Fmcp",{"title":75,"path":76,"stem":77,"order":20,"icon":7,"collapse":8,"navBadges":7},"REST API","\u002Freference\u002Frest-api","reference\u002Frest-api",{"title":79,"path":80,"stem":81,"order":25,"icon":7,"collapse":8,"navBadges":7},"Configuration","\u002Freference\u002Fconfiguration","reference\u002Fconfiguration",{"id":83,"title":79,"aside":84,"body":85,"collapse":8,"description":397,"editLink":84,"extension":398,"icon":7,"issueLink":84,"meta":399,"navBadges":7,"navigation":7,"order":25,"path":80,"prevNext":84,"seo":400,"stem":81,"toc":84,"__hash__":401},"docs\u002Freference\u002Fconfiguration.md",true,{"type":86,"value":87,"toc":390},"minimark",[88,92,97,101,162,172,176,351,355,376,380],[89,90,79],"h1",{"id":91},"configuration",[93,94,96],"h2",{"id":95},"required","Required",[98,99,100],"p",{},"These four must stay the same across redeployments:",[102,103,104,117],"table",{},[105,106,107],"thead",{},[108,109,110,114],"tr",{},[111,112,113],"th",{},"Variable",[111,115,116],{},"Purpose",[118,119,120,132,142,152],"tbody",{},[108,121,122,129],{},[123,124,125],"td",{},[126,127,128],"code",{},"ADMIN_USERNAME",[123,130,131],{},"The owner login name. Changing it renames the same account.",[108,133,134,139],{},[123,135,136],{},[126,137,138],{},"ADMIN_PASSWORD",[123,140,141],{},"The owner password. Changing it rotates the stored hash on restart.",[108,143,144,149],{},[123,145,146],{},[126,147,148],{},"JWT_SECRET",[123,150,151],{},"Root secret for the browser session. Rotating it signs everyone out.",[108,153,154,159],{},[123,155,156],{},[126,157,158],{},"SHARE_SECRET",[123,160,161],{},"Signs unlisted share links. Rotating it invalidates existing links.",[98,163,164,165,168,169,171],{},"On Cloudflare Workers, also set ",[126,166,167],{},"NUXT_APP_SECRET",". Docker and Node derive it from\n",[126,170,148],{},".",[93,173,175],{"id":174},"optional","Optional",[102,177,178,186],{},[105,179,180],{},[108,181,182,184],{},[111,183,113],{},[111,185,116],{},[118,187,188,201,219,235,256,277,303,316,334],{},[108,189,190,195],{},[123,191,192],{},[126,193,194],{},"PUBLIC_BASE_URL",[123,196,197,198],{},"Public origin for OAuth metadata and audience checks, when a proxy rewrites ",[126,199,200],{},"Host",[108,202,203,208],{},[123,204,205],{},[126,206,207],{},"DATABASE_PATH",[123,209,210,211,214,215,218],{},"SQLite file location. Default ",[126,212,213],{},".\u002Fdata\u002Fserangkai.db"," (",[126,216,217],{},"\u002Fdata\u002Fserangkai.db"," in Docker)",[108,220,221,226],{},[123,222,223],{},[126,224,225],{},"STORAGE_PATH",[123,227,228,229,214,232,218],{},"Local file store. Default ",[126,230,231],{},".\u002Fdata\u002Ffiles",[126,233,234],{},"\u002Fdata\u002Ffiles",[108,236,237,242],{},[123,238,239],{},[126,240,241],{},"DATABASE_DRIVER",[123,243,244,245,248,249,252,253],{},"Set to ",[126,246,247],{},"turso"," to use Turso or libSQL, with ",[126,250,251],{},"TURSO_DATABASE_URL"," and ",[126,254,255],{},"TURSO_AUTH_TOKEN",[108,257,258,263],{},[123,259,260],{},[126,261,262],{},"STORAGE_DRIVER",[123,264,265,268,269,272,273,276],{},[126,266,267],{},"local"," (default on Docker and Node), ",[126,270,271],{},"s3",", or ",[126,274,275],{},"r2-binding"," (default on Workers)",[108,278,279,297],{},[123,280,281,284,285,284,288,284,291,284,294],{},[126,282,283],{},"S3_ENDPOINT",", ",[126,286,287],{},"S3_REGION",[126,289,290],{},"S3_BUCKET",[126,292,293],{},"S3_ACCESS_KEY_ID",[126,295,296],{},"S3_SECRET_ACCESS_KEY",[123,298,299,300],{},"Object storage settings for ",[126,301,302],{},"STORAGE_DRIVER=s3",[108,304,305,310],{},[123,306,307],{},[126,308,309],{},"R2_BINDING",[123,311,312,313],{},"R2 binding name on Workers. Default ",[126,314,315],{},"RANGKA",[108,317,318,323],{},[123,319,320],{},[126,321,322],{},"STORAGE_LIMIT",[123,324,325,326,329,330,333],{},"Hard storage cap, such as ",[126,327,328],{},"10GB"," or ",[126,331,332],{},"8GiB",". Writes past it are refused",[108,335,336,344],{},[123,337,338,284,341],{},[126,339,340],{},"TRUST_PROXY",[126,342,343],{},"TRUSTED_PROXY_IPS",[123,345,346,347,350],{},"Let rate limiting read ",[126,348,349],{},"X-Forwarded-For"," behind a reverse proxy",[93,352,354],{"id":353},"rate-limits","Rate limits",[98,356,357,252,360,363,364,367,368,371,372,375],{},[126,358,359],{},"SERANGKAI_LOGIN_RATE_LIMIT",[126,361,362],{},"SERANGKAI_LOGIN_RATE_WINDOW_MS"," tune the\nlogin throttle. ",[126,365,366],{},"SERANGKAI_OAUTH_REGISTER_RATE_LIMIT",",\n",[126,369,370],{},"SERANGKAI_OAUTH_AUTHORIZE_RATE_LIMIT",", and ",[126,373,374],{},"SERANGKAI_OAUTH_DEVICE_RATE_LIMIT","\ntune OAuth throttling.",[93,377,379],{"id":378},"settings-in-the-app","Settings in the app",[98,381,382,383,385,386,171],{},"The owner can also set a storage limit lower than ",[126,384,322],{},", choose\nwhether reaching it warns or refuses writes, and choose how many versions to\nkeep per rangka, all in ",[387,388,389],"strong",{},"Settings → Storage",{"title":391,"searchDepth":25,"depth":25,"links":392},"",[393,394,395,396],{"id":95,"depth":20,"text":96},{"id":174,"depth":20,"text":175},{"id":353,"depth":20,"text":354},{"id":378,"depth":20,"text":379},"Environment variables for the owner account, secrets, storage, and limits.","md",{},{"title":79,"description":397},"2QuBBjGKGyPeZAnofCV_S5BfA1iorwcOHrqs11mYAsI",1795580564390]