element-hq / element-hq/synapse

SYNAPSE_HTTP_PORT is not replaced in generated config file

Open
#12,396 0 comments 0 reactions 0 assignees View on GitHub
A-Config A-Docker S-Minor T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#12396](https://github.com/matrix-org/synapse/issues/12396).

---

### Description

While config generation, the `SYNAPSE_HTTP_PORT` is not replaced. Consequently the port is always `8008`.

### Steps to reproduce

- Run the following command
```
docker run -it --rm \
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_SERVER_NAME=testserver \
-e SYNAPSE_HTTP_PORT=1234 \
-e SYNAPSE_REPORT_STATS=no \
matrixdotorg/synapse:latest generate
```
- Check the generated `homeserver.yaml` file

### Version information

- **Homeserver**: -

If not matrix.org:

- **Version**: v1.55.2

- **Install method**: Kustomize

- **Platform**: Kubernetes 1.20+

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.