[{"data":1,"prerenderedAt":737,"buildId":738},["ShallowReactive",2],{"\u002Fself-hosting\u002Freverse-proxy":3,"\u002Fself-hosting\u002Freverse-proxy-surround":452,"navigation":461},{"id":4,"title":5,"body":6,"description":445,"extension":446,"meta":447,"navigation":175,"path":448,"seo":449,"stem":450,"__hash__":451},"docs\u002F6.self-hosting\u002F3.reverse-proxy.md","Reverse proxies and HTTPS",{"type":7,"value":8,"toc":437},"minimark",[9,26,29,79,84,87,128,136,139,247,258,262,278,293,297,376,389,393,415,419,433],[10,11,12,13,17,18,21,22,25],"p",{},"Run Avenvail behind a reverse proxy that terminates HTTPS and forwards everything on one host name to port 8080. Avenvail serves the dashboard, API, share pages (",[14,15,16],"code",{},"\u002Fs\u002F","), deletion pages (",[14,19,20],{},"\u002Fd\u002F",") and health checks (",[14,23,24],{},"\u002Fhealth\u002F",") from that one origin. Do not split them across hosts or paths.",[10,27,28],{},"Whatever proxy you use:",[30,31,32,44,55,66],"ul",{},[33,34,35,36,39,40,43],"li",{},"Set ",[14,37,38],{},"Avenvail__BaseUrl"," to the public ",[14,41,42],{},"https:\u002F\u002F"," address.",[33,45,46,47,50,51,54],{},"Allow request bodies at least as large as ",[14,48,49],{},"Avenvail__MaxUploadBytes"," (or, if only the web app uploads large files, ",[14,52,53],{},"Avenvail__ResumableUploads__ChunkBytes","), and long enough timeouts for your slowest upload. Disable request buffering if the proxy supports it, so uploads stream.",[33,56,57,58,61,62,65],{},"Do not compress or rewrite responses from ",[14,59,60],{},"\u002Fs\u002F*\u002Fraw",". Avenvail marks them ",[14,63,64],{},"no-transform","; most proxies respect that.",[33,67,68,69,72,73,78],{},"If Avenvail is reachable only through the proxy, set ",[14,70,71],{},"ASPNETCORE_FORWARDEDHEADERS_ENABLED=true"," so it sees real client addresses (see ",[74,75,77],"a",{"href":76},"\u002Fself-hosting\u002Fconfiguration#aspnet-core-settings","Configuration",").",[80,81,83],"h2",{"id":82},"caddy","Caddy",[10,85,86],{},"Caddy gets and renews certificates by itself, and has no body size limit by default.",[88,89,94],"pre",{"className":90,"code":91,"language":92,"meta":93,"style":93},"language-caddyfile shiki shiki-themes material-theme-lighter github-light github-dark","files.example.com {\n    encode zstd gzip\n    header Strict-Transport-Security \"max-age=31536000\"\n    reverse_proxy avenvail:8080\n}\n","caddyfile","",[14,95,96,104,110,116,122],{"__ignoreMap":93},[97,98,101],"span",{"class":99,"line":100},"line",1,[97,102,103],{},"files.example.com {\n",[97,105,107],{"class":99,"line":106},2,[97,108,109],{},"    encode zstd gzip\n",[97,111,113],{"class":99,"line":112},3,[97,114,115],{},"    header Strict-Transport-Security \"max-age=31536000\"\n",[97,117,119],{"class":99,"line":118},4,[97,120,121],{},"    reverse_proxy avenvail:8080\n",[97,123,125],{"class":99,"line":124},5,[97,126,127],{},"}\n",[10,129,130,131,135],{},"The ",[74,132,134],{"href":133},"\u002Fself-hosting\u002Fdigitalocean","DigitalOcean installer"," sets this up for you.",[80,137,138],{"id":138},"nginx",[88,140,143],{"className":141,"code":142,"language":138,"meta":93,"style":93},"language-nginx shiki shiki-themes material-theme-lighter github-light github-dark","server {\n    listen 443 ssl;\n    http2 on;\n    server_name files.example.com;\n    # ssl_certificate \u002F ssl_certificate_key ...\n\n    client_max_body_size 100m;      # at least Avenvail__MaxUploadBytes\n    proxy_request_buffering off;\n    proxy_read_timeout 300s;\n    proxy_send_timeout 300s;\n\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:8080;\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n    }\n}\n",[14,144,145,150,155,160,165,170,177,183,189,195,201,206,212,218,224,230,236,242],{"__ignoreMap":93},[97,146,147],{"class":99,"line":100},[97,148,149],{},"server {\n",[97,151,152],{"class":99,"line":106},[97,153,154],{},"    listen 443 ssl;\n",[97,156,157],{"class":99,"line":112},[97,158,159],{},"    http2 on;\n",[97,161,162],{"class":99,"line":118},[97,163,164],{},"    server_name files.example.com;\n",[97,166,167],{"class":99,"line":124},[97,168,169],{},"    # ssl_certificate \u002F ssl_certificate_key ...\n",[97,171,173],{"class":99,"line":172},6,[97,174,176],{"emptyLinePlaceholder":175},true,"\n",[97,178,180],{"class":99,"line":179},7,[97,181,182],{},"    client_max_body_size 100m;      # at least Avenvail__MaxUploadBytes\n",[97,184,186],{"class":99,"line":185},8,[97,187,188],{},"    proxy_request_buffering off;\n",[97,190,192],{"class":99,"line":191},9,[97,193,194],{},"    proxy_read_timeout 300s;\n",[97,196,198],{"class":99,"line":197},10,[97,199,200],{},"    proxy_send_timeout 300s;\n",[97,202,204],{"class":99,"line":203},11,[97,205,176],{"emptyLinePlaceholder":175},[97,207,209],{"class":99,"line":208},12,[97,210,211],{},"    location \u002F {\n",[97,213,215],{"class":99,"line":214},13,[97,216,217],{},"        proxy_pass http:\u002F\u002F127.0.0.1:8080;\n",[97,219,221],{"class":99,"line":220},14,[97,222,223],{},"        proxy_set_header Host $host;\n",[97,225,227],{"class":99,"line":226},15,[97,228,229],{},"        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n",[97,231,233],{"class":99,"line":232},16,[97,234,235],{},"        proxy_set_header X-Forwarded-Proto $scheme;\n",[97,237,239],{"class":99,"line":238},17,[97,240,241],{},"    }\n",[97,243,245],{"class":99,"line":244},18,[97,246,127],{},[10,248,249,250,253,254,257],{},"nginx's default ",[14,251,252],{},"client_max_body_size"," is 1 MB, which rejects most screenshots with ",[14,255,256],{},"413",".",[80,259,261],{"id":260},"nginx-proxy-manager","Nginx Proxy Manager",[10,263,264,265,268,269,272,273,277],{},"Add a proxy host for your domain pointing at ",[14,266,267],{},"avenvail"," port ",[14,270,271],{},"8080"," (or the host's IP), request a certificate on the SSL tab, and under ",[274,275,276],"strong",{},"Advanced"," add:",[88,279,281],{"className":141,"code":280,"language":138,"meta":93,"style":93},"client_max_body_size 100m;\nproxy_request_buffering off;\n",[14,282,283,288],{"__ignoreMap":93},[97,284,285],{"class":99,"line":100},[97,286,287],{},"client_max_body_size 100m;\n",[97,289,290],{"class":99,"line":106},[97,291,292],{},"proxy_request_buffering off;\n",[80,294,296],{"id":295},"traefik","Traefik",[88,298,302],{"className":299,"code":300,"language":301,"meta":93,"style":93},"language-yaml shiki shiki-themes material-theme-lighter github-light github-dark","services:\n  avenvail:\n    image: ghcr.io\u002Favenvail\u002Favenvail:0.7\n    labels:\n      - traefik.enable=true\n      - traefik.http.routers.avenvail.rule=Host(`files.example.com`)\n      - traefik.http.routers.avenvail.entrypoints=websecure\n      - traefik.http.routers.avenvail.tls.certresolver=letsencrypt\n      - traefik.http.services.avenvail.loadbalancer.server.port=8080\n","yaml",[14,303,304,314,321,333,340,348,355,362,369],{"__ignoreMap":93},[97,305,306,310],{"class":99,"line":100},[97,307,309],{"class":308},"sQzsp","services",[97,311,313],{"class":312},"sP7_E",":\n",[97,315,316,319],{"class":99,"line":106},[97,317,318],{"class":308},"  avenvail",[97,320,313],{"class":312},[97,322,323,326,329],{"class":99,"line":112},[97,324,325],{"class":308},"    image",[97,327,328],{"class":312},":",[97,330,332],{"class":331},"s_sjI"," ghcr.io\u002Favenvail\u002Favenvail:0.7\n",[97,334,335,338],{"class":99,"line":118},[97,336,337],{"class":308},"    labels",[97,339,313],{"class":312},[97,341,342,345],{"class":99,"line":124},[97,343,344],{"class":312},"      -",[97,346,347],{"class":331}," traefik.enable=true\n",[97,349,350,352],{"class":99,"line":172},[97,351,344],{"class":312},[97,353,354],{"class":331}," traefik.http.routers.avenvail.rule=Host(`files.example.com`)\n",[97,356,357,359],{"class":99,"line":179},[97,358,344],{"class":312},[97,360,361],{"class":331}," traefik.http.routers.avenvail.entrypoints=websecure\n",[97,363,364,366],{"class":99,"line":185},[97,365,344],{"class":312},[97,367,368],{"class":331}," traefik.http.routers.avenvail.tls.certresolver=letsencrypt\n",[97,370,371,373],{"class":99,"line":191},[97,372,344],{"class":312},[97,374,375],{"class":331}," traefik.http.services.avenvail.loadbalancer.server.port=8080\n",[10,377,378,379,382,383,386,387,257],{},"Traefik does not limit body size unless you add a ",[14,380,381],{},"buffering"," middleware. If you do, set ",[14,384,385],{},"maxRequestBodyBytes"," to at least ",[14,388,49],{},[80,390,392],{"id":391},"cloudflare-proxy-and-cloudflare-tunnel","Cloudflare proxy and Cloudflare Tunnel",[10,394,395,396,398,399,401,402,404,405,407,408,411,412,414],{},"Cloudflare's proxy (the orange cloud) and Cloudflare Tunnel cap request bodies by plan: 100 MB on Free and Pro at the time of writing. Larger uploads fail at Cloudflare with ",[14,397,256],{}," before they reach Avenvail, whatever ",[14,400,49],{}," says. The web app sends files larger than ",[14,403,53],{}," (8 MiB) in pieces, so browser uploads are not affected and ",[14,406,49],{}," can go above the limit. ShareX and other clients that use the single-request ",[14,409,410],{},"\u002Fapi\u002Fv1\u002Fuploads"," endpoint are still capped by Cloudflare, so either keep ",[14,413,49],{}," at or below your plan's limit so the error comes from Avenvail, or serve Avenvail on a DNS-only (grey cloud) record. Cloudflare also ends a request that waits more than 100 seconds for a response; when finishing a very large upload takes longer, the web app checks back and picks up the result.",[80,416,418],{"id":417},"tailscale-or-lan-only","Tailscale or LAN only",[10,420,421,422,424,425,428,429,432],{},"For a private installation, set ",[14,423,38],{}," to the address you use (for example ",[14,426,427],{},"https:\u002F\u002Favenvail.tailnet-name.ts.net"," with ",[14,430,431],{},"tailscale serve","). Links shared from it only work for people on the same network.",[434,435,436],"style",{},"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);}html pre.shiki code .sQzsp, html code.shiki .sQzsp{--shiki-light:#E53935;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}",{"title":93,"searchDepth":106,"depth":112,"links":438},[439,440,441,442,443,444],{"id":82,"depth":106,"text":83},{"id":138,"depth":106,"text":138},{"id":260,"depth":106,"text":261},{"id":295,"depth":106,"text":296},{"id":391,"depth":106,"text":392},{"id":417,"depth":106,"text":418},"Put Avenvail behind Caddy, nginx, Traefik or Nginx Proxy Manager, and what to know about Cloudflare.","md",{},"\u002Fself-hosting\u002Freverse-proxy",{"title":5,"description":445},"6.self-hosting\u002F3.reverse-proxy","UHCdm-RE8BPlIaDPlU08IXJMWqAP18QRnKn_IVW5gyg",[453,457],{"title":77,"path":454,"stem":455,"description":456,"children":-1},"\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration","Every setting and environment variable: the base address, first-run setup, single sign-on, storage, cleanup, background jobs and plugins.",{"title":458,"path":133,"stem":459,"description":460,"children":-1},"DigitalOcean","6.self-hosting\u002F4.digitalocean","Turn a fresh Droplet into an Avenvail server with one script: HTTPS, a firewall, optional bucket storage and daily backups.",[462,482,521,565,576,595,606,640,675,689,705],{"title":463,"path":464,"stem":465,"children":466,"icon":481},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[467,469,473,477],{"title":468,"path":464,"stem":465},"Introduction",{"title":470,"path":471,"stem":472},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":474,"path":475,"stem":476},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":478,"path":479,"stem":480},"Updating Avenvail","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":483,"icon":484,"path":485,"stem":486,"children":487,"page":520},"Library","i-lucide-folder","\u002Flibrary","2.library",[488,492,496,500,504,508,512,516],{"title":489,"path":490,"stem":491},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":493,"path":494,"stem":495},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":497,"path":498,"stem":499},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":501,"path":502,"stem":503},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":505,"path":506,"stem":507},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":509,"path":510,"stem":511},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":513,"path":514,"stem":515},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":517,"path":518,"stem":519},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":522,"path":523,"stem":524,"children":525,"icon":564},"Automations","\u002Fautomations","3.automations\u002F01.index",[526,528,532,536,540,544,548,552,556,560],{"title":527,"path":523,"stem":524},"Overview",{"title":529,"path":530,"stem":531},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":533,"path":534,"stem":535},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":537,"path":538,"stem":539},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":541,"path":542,"stem":543},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":545,"path":546,"stem":547},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":549,"path":550,"stem":551},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":553,"path":554,"stem":555},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":557,"path":558,"stem":559},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":561,"path":562,"stem":563},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":566,"path":567,"stem":568,"children":569,"icon":575},"Connections","\u002Fconnections","4.connections\u002F1.index",[570,571],{"title":527,"path":567,"stem":568},{"title":572,"path":573,"stem":574},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":577,"path":578,"stem":579,"children":580,"icon":594},"AI","\u002Fai","5.ai\u002F1.index",[581,582,586,590],{"title":527,"path":578,"stem":579},{"title":583,"path":584,"stem":585},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":587,"path":588,"stem":589},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":591,"path":592,"stem":593},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":596,"path":597,"stem":598,"children":599,"icon":605},"OCR","\u002Focr","5.ocr\u002F1.index",[600,601],{"title":527,"path":597,"stem":598},{"title":602,"path":603,"stem":604},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":607,"path":608,"stem":609,"children":610,"icon":639},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[611,612,616,617,618,619,623,627,631,635],{"title":527,"path":608,"stem":609},{"title":613,"path":614,"stem":615},"Troubleshooting","\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":77,"path":454,"stem":455},{"title":5,"path":448,"stem":450},{"title":458,"path":133,"stem":459},{"title":620,"path":621,"stem":622},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":624,"path":625,"stem":626},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":628,"path":629,"stem":630},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":632,"path":633,"stem":634},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":636,"path":637,"stem":638},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":641,"path":642,"stem":643,"children":644,"icon":674},"Guides","\u002Fguides","7.guides\u002F1.index",[645,646,650,654,658,662,666,670],{"title":527,"path":642,"stem":643},{"title":647,"path":648,"stem":649},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":651,"path":652,"stem":653},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":655,"path":656,"stem":657},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":659,"path":660,"stem":661},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":663,"path":664,"stem":665},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":667,"path":668,"stem":669},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":671,"path":672,"stem":673},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":676,"icon":677,"path":678,"stem":679,"children":680,"page":520},"Reference","i-lucide-library","\u002Freference","8.reference",[681,685],{"title":682,"path":683,"stem":684},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":686,"path":687,"stem":688},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":690,"path":691,"stem":692,"children":693,"icon":704},"Development","\u002Fdevelopment","9.development\u002F1.index",[694,696,700],{"title":695,"path":691,"stem":692},"Local development",{"title":697,"path":698,"stem":699},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":701,"path":702,"stem":703},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":706,"path":707,"stem":708,"children":709,"icon":736},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[710,712,716,720,724,728,732],{"title":711,"path":707,"stem":708},"Comparing Avenvail",{"title":713,"path":714,"stem":715},"Avenvail and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":717,"path":718,"stem":719},"Avenvail and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":721,"path":722,"stem":723},"Avenvail and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":725,"path":726,"stem":727},"Avenvail and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":729,"path":730,"stem":731},"Avenvail and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":733,"path":734,"stem":735},"Avenvail and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796307525987,"dedf49b8-a40d-4148-af64-03be4eab20c1"]