[{"data":1,"prerenderedAt":736,"buildId":737},["ShallowReactive",2],{"\u002Fself-hosting\u002Freverse-proxy":3,"\u002Fself-hosting\u002Freverse-proxy-surround":452,"navigation":460},{"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 Tessra behind a reverse proxy that terminates HTTPS and forwards everything on one host name to port 8080. Tessra 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],{},"Tessra__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],{},"Tessra__MaxUploadBytes"," (or, if only the web app uploads large files, ",[14,52,53],{},"Tessra__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",". Tessra marks them ",[14,63,64],{},"no-transform","; most proxies respect that.",[33,67,68,69,72,73,78],{},"If Tessra 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 tessra: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 tessra: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 Tessra__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 Tessra__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],{},"tessra"," 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  tessra:\n    image: ghcr.io\u002Fbrostro\u002Ftessra:0.1\n    labels:\n      - traefik.enable=true\n      - traefik.http.routers.tessra.rule=Host(`files.example.com`)\n      - traefik.http.routers.tessra.entrypoints=websecure\n      - traefik.http.routers.tessra.tls.certresolver=letsencrypt\n      - traefik.http.services.tessra.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},"  tessra",[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\u002Fbrostro\u002Ftessra:0.1\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.tessra.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.tessra.entrypoints=websecure\n",[97,363,364,366],{"class":99,"line":185},[97,365,344],{"class":312},[97,367,368],{"class":331}," traefik.http.routers.tessra.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.tessra.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 Tessra, 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 Tessra, or serve Tessra 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\u002Ftessra.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 Tessra 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","rxnf-9wc_kO8J1zKyBnzX5jO6xQC4GpqJISDeS0P9ms",[453,457],{"title":77,"path":454,"stem":455,"description":456,"children":-1},"\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration","[object Object]",{"title":458,"path":133,"stem":459,"description":456,"children":-1},"DigitalOcean","6.self-hosting\u002F4.digitalocean",[461,481,520,564,575,594,605,639,674,688,704],{"title":462,"path":463,"stem":464,"children":465,"icon":480},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[466,468,472,476],{"title":467,"path":463,"stem":464},"Introduction",{"title":469,"path":470,"stem":471},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":473,"path":474,"stem":475},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":477,"path":478,"stem":479},"Updating Tessra","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":482,"icon":483,"path":484,"stem":485,"children":486,"page":519},"Library","i-lucide-folder","\u002Flibrary","2.library",[487,491,495,499,503,507,511,515],{"title":488,"path":489,"stem":490},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":492,"path":493,"stem":494},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":496,"path":497,"stem":498},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":500,"path":501,"stem":502},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":504,"path":505,"stem":506},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":508,"path":509,"stem":510},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":512,"path":513,"stem":514},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":516,"path":517,"stem":518},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":521,"path":522,"stem":523,"children":524,"icon":563},"Automations","\u002Fautomations","3.automations\u002F01.index",[525,527,531,535,539,543,547,551,555,559],{"title":526,"path":522,"stem":523},"Overview",{"title":528,"path":529,"stem":530},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":532,"path":533,"stem":534},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":536,"path":537,"stem":538},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":540,"path":541,"stem":542},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":544,"path":545,"stem":546},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":548,"path":549,"stem":550},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":552,"path":553,"stem":554},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":556,"path":557,"stem":558},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":560,"path":561,"stem":562},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":565,"path":566,"stem":567,"children":568,"icon":574},"Connections","\u002Fconnections","4.connections\u002F1.index",[569,570],{"title":526,"path":566,"stem":567},{"title":571,"path":572,"stem":573},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":576,"path":577,"stem":578,"children":579,"icon":593},"AI","\u002Fai","5.ai\u002F1.index",[580,581,585,589],{"title":526,"path":577,"stem":578},{"title":582,"path":583,"stem":584},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":586,"path":587,"stem":588},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":590,"path":591,"stem":592},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":595,"path":596,"stem":597,"children":598,"icon":604},"OCR","\u002Focr","5.ocr\u002F1.index",[599,600],{"title":526,"path":596,"stem":597},{"title":601,"path":602,"stem":603},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":606,"path":607,"stem":608,"children":609,"icon":638},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[610,611,615,616,617,618,622,626,630,634],{"title":526,"path":607,"stem":608},{"title":612,"path":613,"stem":614},"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":619,"path":620,"stem":621},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":623,"path":624,"stem":625},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":627,"path":628,"stem":629},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":631,"path":632,"stem":633},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":635,"path":636,"stem":637},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":640,"path":641,"stem":642,"children":643,"icon":673},"Guides","\u002Fguides","7.guides\u002F1.index",[644,645,649,653,657,661,665,669],{"title":526,"path":641,"stem":642},{"title":646,"path":647,"stem":648},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":650,"path":651,"stem":652},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":654,"path":655,"stem":656},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":658,"path":659,"stem":660},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":662,"path":663,"stem":664},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":666,"path":667,"stem":668},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":670,"path":671,"stem":672},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":675,"icon":676,"path":677,"stem":678,"children":679,"page":519},"Reference","i-lucide-library","\u002Freference","8.reference",[680,684],{"title":681,"path":682,"stem":683},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":685,"path":686,"stem":687},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":689,"path":690,"stem":691,"children":692,"icon":703},"Development","\u002Fdevelopment","9.development\u002F1.index",[693,695,699],{"title":694,"path":690,"stem":691},"Local development",{"title":696,"path":697,"stem":698},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":700,"path":701,"stem":702},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":705,"path":706,"stem":707,"children":708,"icon":735},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[709,711,715,719,723,727,731],{"title":710,"path":706,"stem":707},"Comparing Tessra",{"title":712,"path":713,"stem":714},"Tessra and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":716,"path":717,"stem":718},"Tessra and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":720,"path":721,"stem":722},"Tessra and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":724,"path":725,"stem":726},"Tessra and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":728,"path":729,"stem":730},"Tessra and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":732,"path":733,"stem":734},"Tessra and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796303406028,"2eb8bd5e-681b-4964-b4c2-2a23ddfda32e"]