Skip to content

use sni-based routing with nginx for web,api,caldav, and carddav#470

Merged
titanism merged 1 commit intoforwardemail:masterfrom
flaviomartins:self-hosting
Apr 16, 2026
Merged

use sni-based routing with nginx for web,api,caldav, and carddav#470
titanism merged 1 commit intoforwardemail:masterfrom
flaviomartins:self-hosting

Conversation

@flaviomartins
Copy link
Copy Markdown
Contributor

the self-hosting setup exposes the web container via port 443.

the proposed changes adds nginx as a pass-through proxy that exposes the REST/WebDAV containers on port 443 based on the prefix subdomain obtained via SNI

Checklist

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
  • I have described my pull request and the reasons for code changes along with context if necessary.

@titanism
Copy link
Copy Markdown
Contributor

@flaviomartins did you have this running and tested on your self hosted setup?

@flaviomartins
Copy link
Copy Markdown
Contributor Author

@titanism I did have this running before. I believe this was the only way to have everything work using a single machine (multiplexing on the same HTTPS port). Let me know if it needs more work.

@titanism titanism merged commit b3df9ab into forwardemail:master Apr 16, 2026
1 check failed
@flaviomartins flaviomartins deleted the self-hosting branch April 16, 2026 19:17
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