Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
C
coderai
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexlab
  • coderai
  • Repository

Switch branch/tag
  • coderai
  • packaging
  • linux
  • nginx.conf
Find file
BlameHistoryPermalink
  • Stefy Lanza (nextime / spora )'s avatar
    proxy: fix double-prefix when outer proxy mounts a tool at the same name · 2b6942d7
    Stefy Lanza (nextime / spora ) authored Jun 26, 2026
    The 0.1.24 nesting blindly appended the bundled sub-app name to the incoming
    X-Forwarded-Prefix, which double-counted it when the outer proxy mounts the app
    under the SAME name and proxies to our /<app>/ path (topology B): outer sends
    "/township" -> container emitted "/township/township", so every township
    fetch() 404'd ("Not found" -> JSON parse error in the UI).
    
    Per-app maps now only append our name when the incoming prefix doesn't already
    end in it, so both topologies work: outer-wraps-everything ("/ai" -> "/ai/town
    ship") and outer-mounts-same-name ("/township" -> "/township"). Direct (no outer
    proxy) still yields "/township".
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01RdMufYvtTbtGDWsiZVoXce
    2b6942d7
nginx.conf 6.08 KB
EditWeb IDE

Replace nginx.conf

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.