Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak httpd config to use less resources #819

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

nisbet-hubbard
Copy link
Contributor

Many thanks for writing this great piece of software and making it open-source! Being able to self-host ntfy really goes a long way towards removing one of the weak links in the Matrix ecosystem, which is the reliance on a central push server that can easily get blocked in certain parts of the world.

Just a couple of tweaks mostly to the httpd configurations to substitute the deprecated mod_proxy_wstunnel, and use more efficient alternatives to mod_rewrite mainly for the benefit of constrained environments.

mod_proxy_wstunnel is deprecated as of httpd 2.4.47. It also uses more resources since it relies on mod_rewrite.

See https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#protoupgrade.
It’s a less resource-intensive alternative to mod_rewrite.
This would help inexperienced sysadmins who may not realise that since TLS terminates at proxy, ntfy is actually listening on a TCP socket that’s using http rather than https.
@binwiederhier
Copy link
Owner

Thank you for this!

@binwiederhier binwiederhier merged commit 723daf9 into binwiederhier:main Aug 17, 2023
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.

2 participants