# No secure Connection to self-hosted Discourse after latest update

**URL:** <https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163>\
**Category:** Self-hosting\
**Created:** [July 28, 2025, 11:39am UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163 "2025-07-28T11:39:27Z")\
**Posts on this page:** 12\
**Page:** 1

## AI-generated summary

Users lubezniy and tanya_byrne report issues with secure connections to their self-hosted Discourse instance after a recent update, where HTTPS (port 443) fails despite HTTP working. The problem stems from a recent change in the Discourse Docker setup that introduced a new requirement: `ENABLE_SSL: true` must be set in `app.yml`. This was not documented and broke SSL functionality for self-hosted instances using custom certificates [tanya_byrne](/t/-/376163/6). The issue was identified as a bug in the Docker configuration and has been fixed by setting `ENABLE_SSL` to `true` by default [featheredtoast](/t/-/376163/8). Users confirmed the fix resolved their connection issues [lubezniy](/t/-/376163/11).

<div class="post-metadata">

**Author:** ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)\
**Post date:** [July 28, 2025, 11:39am UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/1 "2025-07-28T11:39:27Z")

</div>

Hi. I have updated some hours ago Discourse Image and Discourse using ./launcher rebuild app . In process, i’ve got some errors which were fixed by removing deprecated plugin installation lines from app.yml . No other configuration changes were made. Now i have running Docker container listening to 80 and 443 TCP ports, but nginx in the container refuses to accept SSL/TLS connections. error.log inside container shows no errors, access.log shows no requests, telnet to 443 port shows connection refusal, HTTP access at TCP port 80 works, but we have SSO authentication problems (probably it’s a problem with secure-only cookies). Launcher restart and discourse-doctor doesn’t help. Restarting nginx inside container doesn’t help also. Where to look now and what to do?

---

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [July 28, 2025, 11:59am UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/2 "2025-07-28T11:59:12Z")

</div>

> [@lubezniy](#):
>
> telnet to 443 port shows connection refusal

it will do if `ufw` is enabled and not set-up to allow connections on https port 443

* * *

Edit: you’ll need this port to be open for #mail-receiver to work properly

---

<div class="post-metadata">

**Author:** ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)\
**Post date:** [July 28, 2025, 12:13pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/3 "2025-07-28T12:13:48Z")

</div>

I did nothing with ufw, iptables etc configuration. The port was exactly opened before update. Could configuration be changed with Discourse updating process?

---

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [July 28, 2025, 12:22pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/4 "2025-07-28T12:22:12Z")

</div>

> [@lubezniy](#):
>
> Could configuration be changed with Discourse updating process?

it absolutely could, Discourse docker container should step in front of `ufw`. However, not have prt 443 open causes issues in cross-talk between different containers or issue with `telnet`

* * *

what deos `.\launcher logs app` return? (you can use MS word to redact your domain name, etc.)

do you access your server through PuTTy or another SSH client? opening port `22` ?

---

<div class="post-metadata">

**Author:** ![tanya\_byrne](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanya_byrne/32/444826_2.png) [@tanya\_byrne](https://meta.discourse.org/u/tanya_byrne)\
**Post date:** [July 28, 2025, 5:13pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/5 "2025-07-28T17:13:46Z")

</div>

I am also seeing this issue on a self-hosted instance after a recent rebuild. No changes in configuration except the rebuild itself. I can access the server through SSH and this is the output of `./launcher logs app`.

```plaintext

run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/01-cleanup-web-pids
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/install-ssl
Started runsvdir, PID is 45
ok: run: redis: (pid 55) 0s
supervisor pid: 53 unicorn pid: 76

```

Docker container is running as evidenced by my output from `docker ps`. (container id redacted)

` local_discourse/app “/sbin/boot” 16 minutes ago Up 16 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp, 0.0.0.0:5432->5432/tcp, [::]:5432->5432/tcp app`

An important note to highlight, we don’t use LetsEncrypt for our certs, due to requiring a specific issuer. However, this cert has not changed and was working fine before the rebuild (and certs issued in this manner have been working on our instances for years).

There seems to be a mismatch between the IP nginx expects (local IP **`127.0.0.1`** ) and the one found assigned to the container. Looks like the container may be running in bridge mode? Here are the network settings from the container. (Please note this log is from when I first identified this issue on Friday and started investigating)

```plaintext
"Labels": {
    "org.opencontainers.image.created": "2025-07-25T21:40:36+00:00"
},
"NetworkSettings": {
    "Bridge": "",
    "SandboxID": "[REDACTED]",
    "SandboxKey": "[REDACTED]",
    "Ports": {
        "443/tcp": [
            {
                "HostIp": "0.0.0.0",
                "HostPort": "443"
            },
            {
                "HostIp": "::",
                "HostPort": "443"
            }
        ],
        "5432/tcp": [
            {
                "HostIp": "0.0.0.0",
                "HostPort": "5432"
            },
            {
                "HostIp": "::",
                "HostPort": "5432"
            }
        ],
        "80/tcp": [
            {
                "HostIp": "0.0.0.0",
                "HostPort": "80"
            },
            {
                "HostIp": "::",
                "HostPort": "80"
            }
        ]
    },
    "HairpinMode": false,
    "LinkLocalIPv6Address": "",
    "LinkLocalIPv6PrefixLen": 0,
    "SecondaryIPAddresses": null,
    "SecondaryIPv6Addresses": null,
    "EndpointID": "[REDACTED]",
    "Gateway": "172.17.0.1",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "IPAddress": "172.17.0.2",
    "IPPrefixLen": 16,
    "IPv6Gateway": "",
    "MacAddress": "[REDACTED]",
    "Networks": {
        "bridge": {
            "IPAMConfig": null,
            "Links": null,
            "Aliases": null,
            "MacAddress": "[REDACTED]",
            "DriverOpts": null,
            "GwPriority": 0,
            "NetworkID": "[REDACTED]",
            "EndpointID": "[REDACTED]",
            "Gateway": "172.17.0.1",
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "DNSNames": null
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![tanya\_byrne](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanya_byrne/32/444826_2.png) [@tanya\_byrne](https://meta.discourse.org/u/tanya_byrne)\
**Post date:** [July 28, 2025, 6:38pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/6 "2025-07-28T18:38:27Z")

</div>

There looks to be a recently merged PR that has introduced a new var requirement to the `app.yml` . This doesn’t appear to be documented yet but you need to add `ENABLE_SSL: true` to your `app.yml` file

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [July 28, 2025, 10:41pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/7 "2025-07-28T22:41:02Z")

</div>

> [@tanya\_byrne](#):
>
> This doesn’t appear to be documented yet but you need to add `ENABLE_SSL: true` to your `app.yml` file

That sounds like a bug. Ssl has been on by default for some years. Can you link to the commit?

I see it in the code in the ssl template. I may be missing something since I’m in my phone and github is having issues, but it looks like it’ll break every self hosted site.

---

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [July 28, 2025, 11:18pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/8 "2025-07-28T23:18:49Z")

</div>

It’s this one here, definitely an unintended bug with merging the ssl-on-boot configuration:

[https://github.com/discourse/discourse\_docker/pull/977](https://github.com/discourse/discourse_docker/pull/977)

I’ve updated the ENABLE\_SSL to be 1 by default here:

[https://github.com/discourse/discourse\_docker/pull/985](https://github.com/discourse/discourse_docker/pull/985)

Thanks for the catch @tanya_byrne

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [July 28, 2025, 11:44pm UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/9 "2025-07-28T23:44:49Z")

</div>

Good save, Jeff! Thanks!

---

<div class="post-metadata">

**Author:** ![tanya\_byrne](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanya_byrne/32/444826_2.png) [@tanya\_byrne](https://meta.discourse.org/u/tanya_byrne)\
**Post date:** [July 29, 2025, 12:13am UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/10 "2025-07-29T00:13:28Z")

</div>

Thanks for the fix @featheredtoast

---

<div class="post-metadata">

**Author:** ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)\
**Post date:** [July 29, 2025, 11:06am UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/11 "2025-07-29T11:06:39Z")

</div>

Thanks, guys. We’re solved the problem also.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [August 28, 2025, 11:06am UTC](https://meta.discourse.org/t/no-secure-connection-to-self-hosted-discourse-after-latest-update/376163/12 "2025-08-28T11:06:46Z")

</div>

Closed on August 28, 2025, 11:06am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
