# 업로드 경로에 80 포트가 있지만 프로토콜은 https입니다

**URL:** https://meta.discourse.org/t/uploads-paths-have-80-port-but-protocol-is-https/386793
**Category:** Support
**Created:** [10월 27, 2025, 8:00오전 UTC](https://meta.discourse.org/t/uploads-paths-have-80-port-but-protocol-is-https/386793 "2025-10-27T08:00:54Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [10월 27, 2025, 9:15오전 UTC](https://meta.discourse.org/t/uploads-paths-have-80-port-but-protocol-is-https/386793/2 "2025-10-27T09:15:36Z")

</div>

Let’s Encrypt를 사용하여 HTTPS를 설정하는 방법에 대한 가이드를 참고할 수 있습니다:

> [@Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709):
>
> bookmark This is a guide for enabling HTTPS on an existing Discourse installation using Let’s Encrypt. It assumes prior installation without HTTPS enabled. person_raising_hand Required user level: System Administrator exclamation This guide is only for existing installs where HTTPS is not enabled. Following the [official setup guide](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md) automatically enables HTTPS by default. So you’d like to add https to your Discourse absolutely free, courtesy of our friends at [Let’s Encrypt?](https://letsencrypt.org/)bell I…

### 가능한 원인: 숨겨진 “Port” 설정

이전 또는 복원 후 데이터베이스에 숨겨진 `port` 사이트 설정이 남아 있을 수 있습니다.  
이 경우 Discourse가 HTTPS URL에 잘못된 포트(예: `:80`)를 추가할 수 있습니다.

확인 및 수정 방법:

1. 컨테이너에 진입합니다:

```plaintext
./launcher enter app

```

1. Rails 콘솔을 엽니다:

```plaintext
rails c

```

1. 현재 값을 확인합니다:

```plaintext
SiteSetting.port

```

1. `80`이 반환되면 값을 비웁니다:

```plaintext
SiteSetting.port = ""

```

1. 그런 다음 모든 게시물과 자산을 다시 생성(rebake)하여 링크를 업데이트합니다:

```plaintext
Jobs.enqueue(:rebake_all_posts)

```

---

_[View the full topic](https://meta.discourse.org/t/uploads-paths-have-80-port-but-protocol-is-https/386793)._
