snapshot of https://github.com/mattermost/mattermost.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Server CI / Postgres (shard 0) (push) Has been skipped
Server CI / Postgres (shard 3) (push) Has been skipped
BuildEnv Docker Image / build-image (push) Failing after 4s
BuildEnv Docker Image / build-image-fips (push) Failing after 4s
Migration Review & Release Notes / Generate migration review & release notes (push) Failing after 3s
Server CI / Build Environment (push) Failing after 3s
Server CI / Postgres (shard 1) (push) Has been skipped
Tools CI / check-style (mattermost-govet) (push) Failing after 4s
Server CI / Postgres (shard 2) (push) Has been skipped
Tools CI / check-style (mmgotool) (push) Failing after 3s
Server CI / Elasticsearch v8 Compatibility (push) Has been skipped
Server CI / OpenSearch v2 Compatibility (push) Has been skipped
Server CI / Postgres FIPS (shard 0) (push) Has been skipped
Tools CI / Test (mattermost-govet) (push) Failing after 3s
Server CI / Postgres FIPS (shard 1) (push) Has been skipped
Server CI / Postgres FIPS (shard 2) (push) Has been skipped
Tools CI / Test (mmgotool) (push) Failing after 3s
Server CI / Postgres FIPS (shard 3) (push) Has been skipped
Server CI / Run mmctl tests (push) Has been skipped
Server CI / Run mmctl tests (FIPS) (push) Has been skipped
Server CI / Merge Postgres Test Results (push) Has been skipped
Server CI / Merge Postgres FIPS Test Results (push) Has been skipped
Server CI / Check backport migrations (push) Has been skipped
Server CI / Check generated files (push) Has been skipped
Server CI / check-style (push) Has been skipped
Server CI / Vet API (push) Has been skipped
Server CI / Build mattermost server app (push) Has been skipped
Server CI / Server CI Complete (push) Failing after 2s
Server CI / Server CI Artifacts (push) Has been skipped
Server CI / Sentry Upload (push) Has been skipped
Server CI / Server CI Report (push) Failing after 5m1s
Server CI Nightly Race / Race Detector (push) Has been skipped
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Webapp CI Cache Warm / Warm Webapp node_modules Cache (push) Has been cancelled
E2E CI Cache Warm / Warm E2E npm Registry Cache (push) Has been cancelled
API / build (push) Has been cancelled
Web App CI / check-types (push) Has been cancelled
Web App CI / check-lint (push) Has been cancelled
Web App CI / check-i18n (push) Has been cancelled
Web App CI / check-external-links (push) Has been cancelled
Web App CI / test (platform) (push) Has been cancelled
Web App CI / test (mattermost-redux) (push) Has been cancelled
Web App CI / test (channels shard 1/4) (push) Has been cancelled
Web App CI / test (channels shard 2/4) (push) Has been cancelled
Web App CI / test (channels shard 3/4) (push) Has been cancelled
Web App CI / test (channels shard 4/4) (push) Has been cancelled
Web App CI / upload-coverage (push) Has been cancelled
Web App CI / build (push) Has been cancelled
YAML Lint / yamllint (push) Has been cancelled
Push mirrored docker images / cd/Push mirrored docker images (push) Has been cancelled
docs-cd / Build and deploy docs (push) Has been cancelled
Docs CI / build (push) Has been cancelled
E2E Cache Warm: Cypress deps / Warm Cypress deps cache (push) Has been cancelled
Scorecards supply-chain security / Scorecard analysis (push) Has been cancelled
Server CI Weekly / Postgres FIPS (push) Has been skipped
Server CI Weekly / Run mmctl tests (FIPS) (push) Has been skipped
Server CI Weekly / Postgres with binary parameters (push) Has been skipped
Server CI Weekly / Build Environment (push) Failing after 1s
Server CI Cache Warm / Warm Go Module and Build Cache (push) Failing after 2s
Server CI Nightly Race / Build Environment (push) Failing after 1s

This commit is contained in:
upstream-mirror
2026-09-16 00:29:55 +05:00
commit 240db4e2a7
15309 changed files with 2173406 additions and 0 deletions

View File

@@ -0,0 +1,147 @@
---
title: "Network ports and outbound proxy"
sidebar_label: "Prepare your network"
---
Open the ports Mattermost needs before you install, and note the outbound destinations your deployment will reach. If your environment blocks direct outbound access, configure an outbound proxy at the same time.
## Network ports
The following table outlines the network ports and protocols required for Mattermost server:
<table style={{width: '98%'}}>
<colgroup>
<col style={{width: '26%'}} />
<col style={{width: '17%'}} />
<col style={{width: '15%'}} />
<col style={{width: '5%'}} />
<col style={{width: '5%'}} />
<col style={{width: '27%'}} />
</colgroup>
<thead>
<tr>
<th>Service Name</th>
<th>Config Setting</th>
<th>Port (default)</th>
<th>Protocol</th>
<th>Direction</th>
<th>Info</th>
</tr>
</thead>
<tbody>
<tr>
<td>HTTP/Websocket</td>
<td>ServiceSettings.ListenAddress</td>
<td>8065/80/443 (TLS)</td>
<td>TCP</td>
<td>Inbound</td>
<td>External (no proxy) / Internal (with proxy) Usually this requires port 80 and 443 when running HTTPS.</td>
</tr>
<tr>
<td>Cluster</td>
<td>ClusterSettings.GossipPort</td>
<td>8074</td>
<td>TCP/UDP</td>
<td>Inbound</td>
<td>Internal</td>
</tr>
<tr>
<td>Metrics</td>
<td>MetricsSettings.ListenAddress</td>
<td>8067</td>
<td>TCP</td>
<td>Inbound</td>
<td>External (no proxy) / Internal (with proxy)</td>
</tr>
<tr>
<td>Database</td>
<td>SqlSettings.DataSource</td>
<td>5432 (PostgreSQL) / 3306 (MySQL)</td>
<td>TCP</td>
<td>Outbound</td>
<td>Usually internal (recommended)</td>
</tr>
<tr>
<td>LDAP</td>
<td>LdapSettings.LdapPort</td>
<td>389</td>
<td>TCP/UDP</td>
<td>Outbound</td>
<td></td>
</tr>
<tr>
<td>S3 Storage</td>
<td>FileSettings.AmazonS3Endpoint</td>
<td>443 (TLS)</td>
<td>TCP</td>
<td>Outbound</td>
<td></td>
</tr>
<tr>
<td>SMTP</td>
<td>EmailSettings.SMTPPort</td>
<td>10025</td>
<td>TCP/UDP</td>
<td>Outbound</td>
<td></td>
</tr>
<tr>
<td>Push Notifications</td>
<td>EmailSettings.PushNotificationServer</td>
<td>443 (TLS)</td>
<td>TCP</td>
<td>Outbound</td>
<td></td>
</tr>
</tbody>
</table>
<Note>
- All outbound ports may vary based on your specific configuration
- Mattermost can be configured to use an outbound proxy for any HTTP/HTTPS traffic (see below)
- Calls service may require additional ports. See the [Calls deployment guide](/deployment-guide/calls/calls-deployment-guide) for details.
</Note>
Only the inbound ports your readers actually reach need to be exposed externally. When Mattermost runs behind [an NGINX reverse proxy](/deployment-guide/server/setup-nginx-proxy), expose 80 and 443 at the proxy and keep 8065, 8067, and 8074 internal.
## Outbound proxy configuration
If your deployment requires using an outbound proxy, you can configure Mattermost using environment variables:
1. Configure the proxy settings in your service configuration:
``` text
Environment=HTTP_PROXY=http://proxy.example.com:3128
Environment=HTTPS_PROXY=https://proxy.example.com:3128
Environment=NO_PROXY=localhost,127.0.0.1,.internal.example.com
```
These lines go in the `[Service]` section of the `mattermost.service` systemd unit. See your install method's page for the complete unit file: [Ubuntu/Debian](/deployment-guide/server/linux/deploy-ubuntu), [RHEL](/deployment-guide/server/linux/deploy-rhel), or [manual tarball](/deployment-guide/server/linux/deploy-tar).
2. For authenticated proxies, include credentials in the URL:
``` text
Environment=HTTP_PROXY=http://username:password@proxy.example.com:3128
Environment=HTTPS_PROXY=https://username:password@proxy.example.com:3128
```
Anyone who can read the unit file can read these credentials. Restrict the file's permissions, or supply the values through a separate `EnvironmentFile` that only root can read.
3. The `NO_PROXY` variable can include:
- IP addresses (e.g., `1.2.3.4`)
- CIDR ranges (e.g., `1.2.3.4/8`)
- Domain names (e.g., `example.com`)
- Subdomains (e.g., `.example.com`)
<Note>
When using an HTTPS proxy, ensure your Mattermost server has the proxy's root certificate configured to avoid connection issues.
</Note>
## Next steps
- [Set up an NGINX proxy](/deployment-guide/server/setup-nginx-proxy) and [set up TLS](/deployment-guide/server/setup-tls) so users connect over HTTPS.
- Return to the [preparation checklist](/deployment-guide/server/preparations).