[{"data":1,"prerenderedAt":1327},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Fself-hosting\u002Fconfig-file":235,"docs-surround:\u002Fdocs\u002Fself-hosting\u002Fconfig-file":1322},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,37,55,70,128,146,191,217],{"title":10,"path":6,"stem":11,"icon":12},"Hubstruct documentation","docs\u002Findex","book-open",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":36},"Getting started","rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,28,32],{"title":20,"path":21,"stem":22,"icon":23},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",null,{"title":25,"path":26,"stem":27,"icon":23},"Requirements","\u002Fdocs\u002Fgetting-started\u002Frequirements","docs\u002F1.getting-started\u002F2.requirements",{"title":29,"path":30,"stem":31,"icon":23},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F3.quick-start",{"title":33,"path":34,"stem":35,"icon":23},"First steps","\u002Fdocs\u002Fgetting-started\u002Ffirst-steps","docs\u002F1.getting-started\u002F4.first-steps",false,{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":36},"Concepts","lightbulb","\u002Fdocs\u002Fconcepts","docs\u002F2.concepts",[43,47,51],{"title":44,"path":45,"stem":46,"icon":23},"How it works","\u002Fdocs\u002Fconcepts\u002Fhow-it-works","docs\u002F2.concepts\u002F1.how-it-works",{"title":48,"path":49,"stem":50,"icon":23},"Processing steps","\u002Fdocs\u002Fconcepts\u002Fprocessing","docs\u002F2.concepts\u002F2.processing",{"title":52,"path":53,"stem":54,"icon":23},"Media","\u002Fdocs\u002Fconcepts\u002Fmedia","docs\u002F2.concepts\u002F3.media",{"title":56,"path":57,"stem":58,"children":59,"icon":69},"Libraries","\u002Fdocs\u002Flibraries","docs\u002F3.libraries\u002F1.index",[60,61,65],{"title":56,"path":57,"stem":58,"icon":23},{"title":62,"path":63,"stem":64,"icon":23},"Storage","\u002Fdocs\u002Flibraries\u002Fs3","docs\u002F3.libraries\u002F3.s3",{"title":66,"path":67,"stem":68,"icon":23},"Uploading","\u002Fdocs\u002Flibraries\u002Fuploading","docs\u002F3.libraries\u002F4.uploading","layer-group",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":36},"Features","wand-magic-sparkles","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[76,80,84,88,92,96,100,104,108,112,116,120,124],{"title":77,"path":78,"stem":79,"icon":23},"Browsing","\u002Fdocs\u002Ffeatures\u002Fbrowsing","docs\u002F4.features\u002F01.browsing",{"title":81,"path":82,"stem":83,"icon":23},"Search","\u002Fdocs\u002Ffeatures\u002Fsearch","docs\u002F4.features\u002F02.search",{"title":85,"path":86,"stem":87,"icon":23},"Tags","\u002Fdocs\u002Ffeatures\u002Ftags","docs\u002F4.features\u002F03.tags",{"title":89,"path":90,"stem":91,"icon":23},"Albums","\u002Fdocs\u002Ffeatures\u002Falbums","docs\u002F4.features\u002F04.albums",{"title":93,"path":94,"stem":95,"icon":23},"People and faces","\u002Fdocs\u002Ffeatures\u002Fpeople","docs\u002F4.features\u002F05.people",{"title":97,"path":98,"stem":99,"icon":23},"Groups","\u002Fdocs\u002Ffeatures\u002Fgroups","docs\u002F4.features\u002F06.groups",{"title":101,"path":102,"stem":103,"icon":23},"Duplicates and stacks","\u002Fdocs\u002Ffeatures\u002Fduplicates-and-stacks","docs\u002F4.features\u002F07.duplicates-and-stacks",{"title":105,"path":106,"stem":107,"icon":23},"NSFW","\u002Fdocs\u002Ffeatures\u002Fnsfw","docs\u002F4.features\u002F08.nsfw",{"title":109,"path":110,"stem":111,"icon":23},"Trash","\u002Fdocs\u002Ffeatures\u002Ftrash","docs\u002F4.features\u002F09.trash",{"title":113,"path":114,"stem":115,"icon":23},"Home and the dashboard","\u002Fdocs\u002Ffeatures\u002Fhome-and-dashboard","docs\u002F4.features\u002F10.home-and-dashboard",{"title":117,"path":118,"stem":119,"icon":23},"Live updates and offline","\u002Fdocs\u002Ffeatures\u002Flive-updates","docs\u002F4.features\u002F11.live-updates",{"title":121,"path":122,"stem":123,"icon":23},"Appearance and the app","\u002Fdocs\u002Ffeatures\u002Fappearance","docs\u002F4.features\u002F12.appearance",{"title":125,"path":126,"stem":127,"icon":23},"Places","\u002Fdocs\u002Ffeatures\u002Fplaces","docs\u002F4.features\u002F13.places",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":36},"Administration","sliders","\u002Fdocs\u002Fadministration","docs\u002F5.administration",[134,138,142],{"title":135,"path":136,"stem":137,"icon":23},"Users and sign-in","\u002Fdocs\u002Fadministration\u002Fusers-and-sign-in","docs\u002F5.administration\u002F1.users-and-sign-in",{"title":139,"path":140,"stem":141,"icon":23},"API keys","\u002Fdocs\u002Fadministration\u002Fapi-keys","docs\u002F5.administration\u002F2.api-keys",{"title":143,"path":144,"stem":145,"icon":23},"Processing settings","\u002Fdocs\u002Fadministration\u002Fprocessing-settings","docs\u002F5.administration\u002F3.processing-settings",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":36},"Self-hosting","server","\u002Fdocs\u002Fself-hosting","docs\u002F6.self-hosting",[152,156,160,164,167,171,175,179,183,187],{"title":153,"path":154,"stem":155,"icon":23},"Architecture","\u002Fdocs\u002Fself-hosting\u002Farchitecture","docs\u002F6.self-hosting\u002F1.architecture",{"title":157,"path":158,"stem":159,"icon":23},"Telemetry","\u002Fdocs\u002Fself-hosting\u002Ftelemetry","docs\u002F6.self-hosting\u002F10.telemetry",{"title":161,"path":162,"stem":163,"icon":23},"Sharing one GPU","\u002Fdocs\u002Fself-hosting\u002Fgpu","docs\u002F6.self-hosting\u002F2.gpu",{"title":62,"path":165,"stem":166,"icon":23},"\u002Fdocs\u002Fself-hosting\u002Fstorage","docs\u002F6.self-hosting\u002F3.storage",{"title":168,"path":169,"stem":170,"icon":23},"Backups","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F6.self-hosting\u002F4.backups",{"title":172,"path":173,"stem":174,"icon":23},"Updating","\u002Fdocs\u002Fself-hosting\u002Fupdating","docs\u002F6.self-hosting\u002F5.updating",{"title":176,"path":177,"stem":178,"icon":23},"Scaling","\u002Fdocs\u002Fself-hosting\u002Fscaling","docs\u002F6.self-hosting\u002F6.scaling",{"title":180,"path":181,"stem":182,"icon":23},"HTTPS and a domain","\u002Fdocs\u002Fself-hosting\u002Freverse-proxy","docs\u002F6.self-hosting\u002F7.reverse-proxy",{"title":184,"path":185,"stem":186,"icon":23},"Troubleshooting","\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting","docs\u002F6.self-hosting\u002F8.troubleshooting",{"title":188,"path":189,"stem":190,"icon":23},"The config file","\u002Fdocs\u002Fself-hosting\u002Fconfig-file","docs\u002F6.self-hosting\u002F9.config-file",{"title":192,"icon":193,"path":194,"stem":195,"children":196,"page":36},"Reference","book","\u002Fdocs\u002Freference","docs\u002F7.reference",[197,201,205,209,213],{"title":198,"path":199,"stem":200,"icon":23},"Environment variables","\u002Fdocs\u002Freference\u002Fenvironment","docs\u002F7.reference\u002F1.environment",{"title":202,"path":203,"stem":204,"icon":23},"Worker roles","\u002Fdocs\u002Freference\u002Fworker-roles","docs\u002F7.reference\u002F2.worker-roles",{"title":206,"path":207,"stem":208,"icon":23},"API","\u002Fdocs\u002Freference\u002Fapi","docs\u002F7.reference\u002F3.api",{"title":210,"path":211,"stem":212,"icon":23},"Keyboard shortcuts","\u002Fdocs\u002Freference\u002Fkeyboard-shortcuts","docs\u002F7.reference\u002F4.keyboard-shortcuts",{"title":214,"path":215,"stem":216,"icon":23},"Models","\u002Fdocs\u002Freference\u002Fmodels","docs\u002F7.reference\u002F5.models",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":36},"Hubstruct Cloud","cloud","\u002Fdocs\u002Fcloud","docs\u002F8.cloud",[223,227,231],{"title":224,"path":225,"stem":226,"icon":23},"Getting started with the cloud","\u002Fdocs\u002Fcloud\u002Fgetting-started","docs\u002F8.cloud\u002F1.getting-started",{"title":228,"path":229,"stem":230,"icon":23},"Plans and billing","\u002Fdocs\u002Fcloud\u002Fplans-and-billing","docs\u002F8.cloud\u002F2.plans-and-billing",{"title":232,"path":233,"stem":234,"icon":23},"Moving between cloud and self-hosted","\u002Fdocs\u002Fcloud\u002Fmoving","docs\u002F8.cloud\u002F3.moving",{"id":236,"title":188,"body":237,"description":1316,"extension":1317,"eyebrow":147,"icon":23,"meta":1318,"navigation":1319,"path":189,"seo":1320,"stem":190,"__hash__":1321},"docs\u002Fdocs\u002F6.self-hosting\u002F9.config-file.md",{"type":238,"value":239,"toc":1303},"minimark",[240,244,252,257,265,290,293,331,342,353,358,372,406,420,424,427,430,433,441,444,448,452,570,616,620,675,715,719,771,774,777,812,829,857,861,1043,1046,1129,1132,1296,1299],[241,242,243],"p",{},"Everything you'd otherwise set up by clicking through the app can be written in one file instead: the processing settings, Google sign-in, the owner's account, API keys, and libraries with their fields, tags and albums. Start a new install with it and there's no first-run setup; keep it in version control and an install can be rebuilt the same way any time.",[241,245,246,247,251],{},"What the file sets can't be changed in the app. It's shown with a lock and ",[248,249,250],"strong",{},"Set by the config file",", and you change it in the file instead.",[253,254,256],"h2",{"id":255},"using-it","Using it",[241,258,259,260,264],{},"The file is ",[261,262,263],"code",{},"config\u002Fhubstruct.yaml"," in the folder you run Hubstruct from. Start from the example beside it:",[266,267,272],"pre",{"className":268,"code":269,"language":270,"meta":271,"style":271},"language-bash shiki shiki-themes github-dark github-light","cp config\u002Fhubstruct.example.yaml config\u002Fhubstruct.yaml\n","bash","",[261,273,274],{"__ignoreMap":271},[275,276,279,283,287],"span",{"class":277,"line":278},"line",1,[275,280,282],{"class":281},"sqoU-","cp",[275,284,286],{"class":285},"skb7c"," config\u002Fhubstruct.example.yaml",[275,288,289],{"class":285}," config\u002Fhubstruct.yaml\n",[241,291,292],{},"Keep what you want and delete the rest: every part is optional, and what the file leaves out is set in the app as usual. Then restart the api so it reads the file:",[266,294,296],{"className":268,"code":295,"language":270,"meta":271,"style":271},"docker compose restart api\ndocker compose logs --tail 20 api\n",[261,297,298,312],{"__ignoreMap":271},[275,299,300,303,306,309],{"class":277,"line":278},[275,301,302],{"class":281},"docker",[275,304,305],{"class":285}," compose",[275,307,308],{"class":285}," restart",[275,310,311],{"class":285}," api\n",[275,313,315,317,319,322,326,329],{"class":277,"line":314},2,[275,316,302],{"class":281},[275,318,305],{"class":285},[275,320,321],{"class":285}," logs",[275,323,325],{"class":324},"sTU5a"," --tail",[275,327,328],{"class":324}," 20",[275,330,311],{"class":285},[241,332,333,334,337,338,341],{},"The log says what it changed (",[261,335,336],{},"config file applied","). Without a ",[261,339,340],{},"hubstruct.yaml"," there's nothing to apply, and the app is set up in the app.",[241,343,344,345,348,349,352],{},"To keep the file somewhere else, set ",[261,346,347],{},"CONFIG_DIR"," in ",[261,350,351],{},".env"," to its folder.",[354,355,357],"h3",{"id":356},"secrets","Secrets",[241,359,360,363,364,367,368,371],{},[261,361,362],{},"${NAME}"," anywhere in a value is replaced by the environment variable ",[261,365,366],{},"NAME",", so a password or an API key needn't be in the file itself. Put them in ",[261,369,370],{},"config\u002Fsecrets.env",", beside it:",[266,373,375],{"className":268,"code":374,"language":270,"meta":271,"style":271},"HUBSTRUCT_OWNER_PASSWORD=a long password\nHUBSTRUCT_BACKUP_KEY=hs_…\n",[261,376,377,396],{"__ignoreMap":271},[275,378,379,383,387,390,393],{"class":277,"line":278},[275,380,382],{"class":381},"shWlK","HUBSTRUCT_OWNER_PASSWORD",[275,384,386],{"class":385},"spKkM","=",[275,388,389],{"class":285},"a",[275,391,392],{"class":281}," long",[275,394,395],{"class":285}," password\n",[275,397,398,401,403],{"class":277,"line":314},[275,399,400],{"class":381},"HUBSTRUCT_BACKUP_KEY",[275,402,386],{"class":385},[275,404,405],{"class":285},"hs_…\n",[241,407,408,409,411,412,415,416,419],{},"Both ",[261,410,340],{}," and ",[261,413,414],{},"secrets.env"," are left out of git by the repository's ",[261,417,418],{},".gitignore",".",[253,421,423],{"id":422},"when-its-applied","When it's applied",[241,425,426],{},"Every time the api starts. Each thing it names is matched to what's already there by name (any case), and made, or changed to match the file, only if it isn't already. So applying the same file again changes nothing, and a change you made in the app before the file named it is put back.",[241,428,429],{},"What the file doesn't name is left alone. Taking a tag out of the file doesn't delete it: it stays in the library, and can be changed in the app again.",[241,431,432],{},"If the file is wrong (a misspelt key, a value out of range, an environment variable that isn't set), the api doesn't start, and its log lists each problem by where it is in the file:",[266,434,439],{"className":435,"code":437,"language":438,"meta":271},[436],"language-text","the config file can't be applied\n  settings.nsfw: Unrecognized key: \"enabeld\"\n","text",[261,440,437],{"__ignoreMap":271},[241,442,443],{},"Fix it and start it again.",[253,445,447],{"id":446},"what-it-can-set","What it can set",[354,449,451],{"id":450},"settings","Settings",[266,453,457],{"className":454,"code":455,"language":456,"meta":271,"style":271},"language-yaml shiki shiki-themes github-dark github-light","settings:\n  steps:\n    tagging: { workers: 3 }\n    description: { workers: 2, paused: true }\n  visionModel: gemma4:e4b\n  nsfw: { enabled: true, blur: true, threshold: 0.6 }\n","yaml",[261,458,459,467,474,495,523,534],{"__ignoreMap":271},[275,460,461,464],{"class":277,"line":278},[275,462,450],{"class":463},"shQVT",[275,465,466],{"class":381},":\n",[275,468,469,472],{"class":277,"line":314},[275,470,471],{"class":463},"  steps",[275,473,466],{"class":381},[275,475,477,480,483,486,489,492],{"class":277,"line":476},3,[275,478,479],{"class":463},"    tagging",[275,481,482],{"class":381},": { ",[275,484,485],{"class":463},"workers",[275,487,488],{"class":381},": ",[275,490,491],{"class":324},"3",[275,493,494],{"class":381}," }\n",[275,496,498,501,503,505,507,510,513,516,518,521],{"class":277,"line":497},4,[275,499,500],{"class":463},"    description",[275,502,482],{"class":381},[275,504,485],{"class":463},[275,506,488],{"class":381},[275,508,509],{"class":324},"2",[275,511,512],{"class":381},", ",[275,514,515],{"class":463},"paused",[275,517,488],{"class":381},[275,519,520],{"class":324},"true",[275,522,494],{"class":381},[275,524,526,529,531],{"class":277,"line":525},5,[275,527,528],{"class":463},"  visionModel",[275,530,488],{"class":381},[275,532,533],{"class":285},"gemma4:e4b\n",[275,535,537,540,542,545,547,549,551,554,556,558,560,563,565,568],{"class":277,"line":536},6,[275,538,539],{"class":463},"  nsfw",[275,541,482],{"class":381},[275,543,544],{"class":463},"enabled",[275,546,488],{"class":381},[275,548,520],{"class":324},[275,550,512],{"class":381},[275,552,553],{"class":463},"blur",[275,555,488],{"class":381},[275,557,520],{"class":324},[275,559,512],{"class":381},[275,561,562],{"class":463},"threshold",[275,564,488],{"class":381},[275,566,567],{"class":324},"0.6",[275,569,494],{"class":381},[241,571,572,575,576,579,580,512,583,512,586,512,589,512,592,512,595,512,598,512,601,512,603,512,606,512,609,411,612,615],{},[261,573,574],{},"steps"," sets each ",[389,577,578],{"href":144},"processing step","'s pool: how many it works on at once (1 to 10), and whether it's paused. The steps are ",[261,581,582],{},"metadata",[261,584,585],{},"renditions",[261,587,588],{},"analysis",[261,590,591],{},"visual",[261,593,594],{},"duplicates",[261,596,597],{},"tagging",[261,599,600],{},"nsfw",[261,602,438],{},[261,604,605],{},"faces",[261,607,608],{},"description",[261,610,611],{},"title",[261,613,614],{},"embedding",". Only what you name is locked: a step the file doesn't mention can still be paused in the app.",[354,617,619],{"id":618},"google-sign-in","Google sign-in",[266,621,623],{"className":454,"code":622,"language":456,"meta":271,"style":271},"signIn:\n  google:\n    clientIds: [1234-abcd.apps.googleusercontent.com]\n    signup: domain\n    domains: [example.com]\n",[261,624,625,632,639,653,663],{"__ignoreMap":271},[275,626,627,630],{"class":277,"line":278},[275,628,629],{"class":463},"signIn",[275,631,466],{"class":381},[275,633,634,637],{"class":277,"line":314},[275,635,636],{"class":463},"  google",[275,638,466],{"class":381},[275,640,641,644,647,650],{"class":277,"line":476},[275,642,643],{"class":463},"    clientIds",[275,645,646],{"class":381},": [",[275,648,649],{"class":285},"1234-abcd.apps.googleusercontent.com",[275,651,652],{"class":381},"]\n",[275,654,655,658,660],{"class":277,"line":497},[275,656,657],{"class":463},"    signup",[275,659,488],{"class":381},[275,661,662],{"class":285},"domain\n",[275,664,665,668,670,673],{"class":277,"line":525},[275,666,667],{"class":463},"    domains",[275,669,646],{"class":381},[275,671,672],{"class":285},"example.com",[275,674,652],{"class":381},[241,676,677,678,681,682,684,685,688,689,348,692,694,695,698,699,702,703,706,707,710,711,714],{},"The same as ",[248,679,680],{},"Settings → Sign-in"," (",[389,683,135],{"href":136},"). ",[261,686,687],{},"clientIds"," are the OAuth client IDs of the apps whose Google sign-ins are taken: the app's own (its ",[261,690,691],{},"GOOGLE_CLIENT_ID",[261,693,351],{},", which holds its secret too), and any other app's. ",[261,696,697],{},"signup"," is who gets an account by signing in with Google: ",[261,700,701],{},"linked"," (only accounts that have linked Google), ",[261,704,705],{},"invite"," (invited emails too), or ",[261,708,709],{},"domain"," (also anyone at ",[261,712,713],{},"domains","). Invites are still sent from the app.",[354,716,718],{"id":717},"the-owner","The owner",[266,720,722],{"className":454,"code":721,"language":456,"meta":271,"style":271},"owner:\n  username: admin\n  password: ${HUBSTRUCT_OWNER_PASSWORD}\n  firstName: Ada\n  lastName: Lovelace\n",[261,723,724,731,741,751,761],{"__ignoreMap":271},[275,725,726,729],{"class":277,"line":278},[275,727,728],{"class":463},"owner",[275,730,466],{"class":381},[275,732,733,736,738],{"class":277,"line":314},[275,734,735],{"class":463},"  username",[275,737,488],{"class":381},[275,739,740],{"class":285},"admin\n",[275,742,743,746,748],{"class":277,"line":476},[275,744,745],{"class":463},"  password",[275,747,488],{"class":381},[275,749,750],{"class":285},"${HUBSTRUCT_OWNER_PASSWORD}\n",[275,752,753,756,758],{"class":277,"line":497},[275,754,755],{"class":463},"  firstName",[275,757,488],{"class":381},[275,759,760],{"class":285},"Ada\n",[275,762,763,766,768],{"class":277,"line":525},[275,764,765],{"class":463},"  lastName",[275,767,488],{"class":381},[275,769,770],{"class":285},"Lovelace\n",[241,772,773],{},"With no accounts yet, this makes the owner's, and there's no first-run setup. After that the owner's username and password are kept as the file says (a new password signs them out everywhere); their name is theirs to change.",[354,775,139],{"id":776},"api-keys",[266,778,780],{"className":454,"code":779,"language":456,"meta":271,"style":271},"apiKeys:\n  - name: Backups\n    key: ${HUBSTRUCT_BACKUP_KEY}\n",[261,781,782,789,802],{"__ignoreMap":271},[275,783,784,787],{"class":277,"line":278},[275,785,786],{"class":463},"apiKeys",[275,788,466],{"class":381},[275,790,791,794,797,799],{"class":277,"line":314},[275,792,793],{"class":381},"  - ",[275,795,796],{"class":463},"name",[275,798,488],{"class":381},[275,800,801],{"class":285},"Backups\n",[275,803,804,807,809],{"class":277,"line":476},[275,805,806],{"class":463},"    key",[275,808,488],{"class":381},[275,810,811],{"class":285},"${HUBSTRUCT_BACKUP_KEY}\n",[241,813,814,816,817,820,821,824,825,828],{},[389,815,139],{"href":140}," that act as the owner, with the key itself given rather than made for you, so a script can be set up before the app first starts. A key is ",[261,818,819],{},"hs_"," and at least 32 more letters, numbers, ",[261,822,823],{},"-"," or ",[261,826,827],{},"_",":",[266,830,832],{"className":268,"code":831,"language":270,"meta":271,"style":271},"echo \"hs_$(openssl rand -hex 24)\"\n",[261,833,834],{"__ignoreMap":271},[275,835,836,839,842,845,848,851,854],{"class":277,"line":278},[275,837,838],{"class":324},"echo",[275,840,841],{"class":285}," \"hs_$(",[275,843,844],{"class":281},"openssl",[275,846,847],{"class":285}," rand ",[275,849,850],{"class":324},"-hex",[275,852,853],{"class":324}," 24",[275,855,856],{"class":285},")\"\n",[354,858,860],{"id":859},"libraries-fields-tags-and-albums","Libraries, fields, tags and albums",[266,862,864],{"className":454,"code":863,"language":456,"meta":271,"style":271},"libraries:\n  - name: Family\n    fields:\n      - { name: Event, type: choice, choices: [Wedding, Birthday] }\n    tags:\n      - { name: Beach, description: Sand and sea., smart: true, confidence: 0.6 }\n    albums:\n      - name: Summer at the beach\n        rules:\n          - { tags: [Beach], takenFrom: 2024-06-01, takenTo: 2024-08-31 }\n",[261,865,866,873,884,891,931,938,978,986,999,1007],{"__ignoreMap":271},[275,867,868,871],{"class":277,"line":278},[275,869,870],{"class":463},"libraries",[275,872,466],{"class":381},[275,874,875,877,879,881],{"class":277,"line":314},[275,876,793],{"class":381},[275,878,796],{"class":463},[275,880,488],{"class":381},[275,882,883],{"class":285},"Family\n",[275,885,886,889],{"class":277,"line":476},[275,887,888],{"class":463},"    fields",[275,890,466],{"class":381},[275,892,893,896,898,900,903,905,908,910,913,915,918,920,923,925,928],{"class":277,"line":497},[275,894,895],{"class":381},"      - { ",[275,897,796],{"class":463},[275,899,488],{"class":381},[275,901,902],{"class":285},"Event",[275,904,512],{"class":381},[275,906,907],{"class":463},"type",[275,909,488],{"class":381},[275,911,912],{"class":285},"choice",[275,914,512],{"class":381},[275,916,917],{"class":463},"choices",[275,919,646],{"class":381},[275,921,922],{"class":285},"Wedding",[275,924,512],{"class":381},[275,926,927],{"class":285},"Birthday",[275,929,930],{"class":381},"] }\n",[275,932,933,936],{"class":277,"line":525},[275,934,935],{"class":463},"    tags",[275,937,466],{"class":381},[275,939,940,942,944,946,949,951,953,955,958,960,963,965,967,969,972,974,976],{"class":277,"line":536},[275,941,895],{"class":381},[275,943,796],{"class":463},[275,945,488],{"class":381},[275,947,948],{"class":285},"Beach",[275,950,512],{"class":381},[275,952,608],{"class":463},[275,954,488],{"class":381},[275,956,957],{"class":285},"Sand and sea.",[275,959,512],{"class":381},[275,961,962],{"class":463},"smart",[275,964,488],{"class":381},[275,966,520],{"class":324},[275,968,512],{"class":381},[275,970,971],{"class":463},"confidence",[275,973,488],{"class":381},[275,975,567],{"class":324},[275,977,494],{"class":381},[275,979,981,984],{"class":277,"line":980},7,[275,982,983],{"class":463},"    albums",[275,985,466],{"class":381},[275,987,989,992,994,996],{"class":277,"line":988},8,[275,990,991],{"class":381},"      - ",[275,993,796],{"class":463},[275,995,488],{"class":381},[275,997,998],{"class":285},"Summer at the beach\n",[275,1000,1002,1005],{"class":277,"line":1001},9,[275,1003,1004],{"class":463},"        rules",[275,1006,466],{"class":381},[275,1008,1010,1013,1016,1018,1020,1023,1026,1028,1031,1033,1036,1038,1041],{"class":277,"line":1009},10,[275,1011,1012],{"class":381},"          - { ",[275,1014,1015],{"class":463},"tags",[275,1017,646],{"class":381},[275,1019,948],{"class":285},[275,1021,1022],{"class":381},"], ",[275,1024,1025],{"class":463},"takenFrom",[275,1027,488],{"class":381},[275,1029,1030],{"class":324},"2024-06-01",[275,1032,512],{"class":381},[275,1034,1035],{"class":463},"takenTo",[275,1037,488],{"class":381},[275,1039,1040],{"class":324},"2024-08-31",[275,1042,494],{"class":381},[241,1044,1045],{},"A library that isn't there is made, keeping its files in Hubstruct's own storage. Its name can't be changed in the app, and it can't be removed there.",[1047,1048,1049,1090,1109],"ul",{},[1050,1051,1052,488,1057,1061,1062,1064,1065,681,1067,512,1069,512,1072,512,1075,512,1078,824,1080,1083,1084,1086,1087,1089],"li",{},[248,1053,1054],{},[261,1055,1056],{},"fields",[389,1058,1060],{"href":1059},"\u002Fdocs\u002Flibraries#fields-of-your-own","fields of your own",", each a ",[261,1063,796],{}," and a ",[261,1066,907],{},[261,1068,438],{},[261,1070,1071],{},"number",[261,1073,1074],{},"date",[261,1076,1077],{},"boolean",[261,1079,912],{},[261,1081,1082],{},"link","), and a ",[261,1085,912],{}," field's ",[261,1088,917],{},". Taking a choice out clears it from the media set to it. A field's type can't be changed by the file: delete the field in the app first (its values go with it).",[1050,1091,1092,1096,1097,1099,1100,1102,1103,1105,1106,1108],{},[248,1093,1094],{},[261,1095,1015],{},": each a ",[261,1098,796],{},", and optionally a ",[261,1101,608],{},", whether it's ",[261,1104,962],{}," (applied by the AI tagger), and the ",[261,1107,971],{}," the tagger needs (0 to 1). Media are still tagged by hand as usual.",[1050,1110,1111,1096,1116,1118,1119,1121,1122,1125,1126,1128],{},[248,1112,1113],{},[261,1114,1115],{},"albums",[261,1117,796],{},", a ",[261,1120,608],{},", and its ",[261,1123,1124],{},"rules",". Leave ",[261,1127,1124],{}," out to keep them in the app; given, they're set by the file. Media are still added to an album by hand as usual, and its color and cover are still set in the app.",[241,1130,1131],{},"An album rule picks the media that match all of what it says; the album holds what any of its rules picks:",[1133,1134,1135,1148],"table",{},[1136,1137,1138],"thead",{},[1139,1140,1141,1145],"tr",{},[1142,1143,1144],"th",{},"Key",[1142,1146,1147],{},"Matches media",[1149,1150,1151,1162,1172,1191,1204,1214,1231,1244,1257,1271,1285],"tbody",{},[1139,1152,1153,1159],{},[1154,1155,1156],"td",{},[261,1157,1158],{},"search",[1154,1160,1161],{},"like this text in meaning",[1139,1163,1164,1169],{},[1154,1165,1166],{},[261,1167,1168],{},"similarity",[1154,1170,1171],{},"at least this alike to the search (0 to 1)",[1139,1173,1174,1179],{},[1154,1175,1176],{},[261,1177,1178],{},"types",[1154,1180,1181,1182,512,1185,512,1188],{},"of these kinds: ",[261,1183,1184],{},"image",[261,1186,1187],{},"gif",[261,1189,1190],{},"video",[1139,1192,1193,1201],{},[1154,1194,1195,1197,1198],{},[261,1196,1015],{}," \u002F ",[261,1199,1200],{},"anyTags",[1154,1202,1203],{},"with all of these tags \u002F any of them",[1139,1205,1206,1211],{},[1154,1207,1208],{},[261,1209,1210],{},"extensions",[1154,1212,1213],{},"with these file extensions",[1139,1215,1216,1221],{},[1154,1217,1218],{},[261,1219,1220],{},"favorites",[1154,1222,1223,1224,1226,1227,1230],{},"that are favorites (",[261,1225,520],{},") or aren't (",[261,1228,1229],{},"false",")",[1139,1232,1233,1241],{},[1154,1234,1235,1197,1238],{},[261,1236,1237],{},"inAlbums",[261,1239,1240],{},"inAnyAlbum",[1154,1242,1243],{},"in all of these albums \u002F any of them",[1139,1245,1246,1254],{},[1154,1247,1248,1197,1251],{},[261,1249,1250],{},"people",[261,1252,1253],{},"allPeople",[1154,1255,1256],{},"with any of these people \u002F all of them",[1139,1258,1259,1265],{},[1154,1260,1261,1197,1263],{},[261,1262,1025],{},[261,1264,1035],{},[1154,1266,1267,1268,1230],{},"taken on or after \u002F on or before this day (",[261,1269,1270],{},"YYYY-MM-DD",[1139,1272,1273,1277],{},[1154,1274,1275],{},[261,1276,600],{},[1154,1278,1279,1280,1282,1283,1230],{},"flagged NSFW (",[261,1281,520],{},") or not (",[261,1284,1229],{},[1139,1286,1287,1291],{},[1154,1288,1289],{},[261,1290,544],{},[1154,1292,1293,1295],{},[261,1294,1229],{}," keeps the rule but matches nothing",[241,1297,1298],{},"Albums and people are named. A person has to be in the library (found and named) before a rule can name them: until then that album's rules wait, and the api's log says so at each start.",[1300,1301,1302],"style",{},"html pre.shiki code .sqoU-, html code.shiki .sqoU-{--shiki-default:#B392F0;--shiki-light:#6F42C1}html pre.shiki code .skb7c, html code.shiki .skb7c{--shiki-default:#9ECBFF;--shiki-light:#032F62}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 .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 pre.shiki code .sTU5a, html code.shiki .sTU5a{--shiki-default:#79B8FF;--shiki-light:#005CC5}html pre.shiki code .shWlK, html code.shiki .shWlK{--shiki-default:#E1E4E8;--shiki-light:#24292E}html pre.shiki code .spKkM, html code.shiki .spKkM{--shiki-default:#F97583;--shiki-light:#D73A49}html pre.shiki code .shQVT, html code.shiki .shQVT{--shiki-default:#85E89D;--shiki-light:#22863A}",{"title":271,"searchDepth":476,"depth":476,"links":1304},[1305,1308,1309],{"id":255,"depth":314,"text":256,"children":1306},[1307],{"id":356,"depth":476,"text":357},{"id":422,"depth":314,"text":423},{"id":446,"depth":314,"text":447,"children":1310},[1311,1312,1313,1314,1315],{"id":450,"depth":476,"text":451},{"id":618,"depth":476,"text":619},{"id":717,"depth":476,"text":718},{"id":776,"depth":476,"text":139},{"id":859,"depth":476,"text":860},"Set Hubstruct up from a file instead of by hand, from its settings and sign-in to its owner, API keys, libraries, tags and albums.","md",{},true,{"title":188,"description":1316},"IotCoj1QKahNuQdueRh7-NyIyhMyTMiXP9u3ceSU_L8",[1323,1325],{"title":184,"path":185,"stem":186,"description":1324,"children":-1},"What to check when something isn't working, from services that won't start to steps that never finish.",{"title":198,"path":199,"stem":200,"description":1326,"children":-1},"Every setting in .env and the Compose file, what it does, and its default.",1795744073403]