Skip to content

env.js: fix httpSafePort handling#1571

Open
martinetd wants to merge 3 commits intocryptpad:stagingfrom
martinetd:ports
Open

env.js: fix httpSafePort handling#1571
martinetd wants to merge 3 commits intocryptpad:stagingfrom
martinetd:ports

Conversation

@martinetd
Copy link
Copy Markdown
Contributor

This is a follow-up of #1212 I had opened last year:

all in all there is nothing impacting any production setup, but might as well finish this so I can get it off my todo. Thanks!

It has been clarified that this is only a dev option that should not be
used in production, but setting the value in config was still ignored,
so fix the init code to consider the config value and make it clear that
this port is not bound if safeOrigin is set.
NO_SANDBOX was removed in commit fde6f15 ("Fix headers added by
node for the recommended config")
I had originally tried disabling as it is not used directly in the
"simple" nginx example config, but everything stops working, so just
document it must not be disabled instead.
@martinetd
Copy link
Copy Markdown
Contributor Author

(rebased to fix conflict in 2025.9.0 -- this really should have zero impact on production and just fixes an optional setting that doesn't work right now. Perhaps it'd be better to remove the httpSafePort setting altogether instead?)

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.

1 participant