Skip to content

Comments

docket: bind the specific paths we want to serve#313

Merged
Fang- merged 1 commit intorelease-410from
m/docket-tighter-binds
Feb 28, 2025
Merged

docket: bind the specific paths we want to serve#313
Fang- merged 1 commit intorelease-410from
m/docket-tighter-binds

Conversation

@Fang-
Copy link
Member

@Fang- Fang- commented Feb 27, 2025

Docket binds root, so it catches all requests not handled elsewhere. It also binds /apps, so it can continue serving app contents after root gets re-bound by someone else.

However, docket also serves /session.js (deprecated in favor of /~/host and/or /~/name but still in use in the wild) and /docket/upload.

To make sure that those continue functioning if root ever gets re-bound elsewhere, we now explicitly bind /session and /docket to docket.

Docket binds root, so it catches all requests not handled elsewhere. It
also binds `/apps`, so it can continue serving app contents after root
gets re-bound by someone else.

However, docket also serves `/session.js` (deprecated in favor of
`/~/host` and/or `/~/name` but still in use in the wild) and
`/docket/upload`.

To make sure that those continue functioning if root ever gets re-bound
elsewhere, we now explicitly bind `/session` and `/docket` to docket.
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Fang- Fang- merged commit 6a7b426 into release-410 Feb 28, 2025
1 check passed
@Fang- Fang- deleted the m/docket-tighter-binds branch February 28, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants