# 自定义端口下头像不显示

**URL:** https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670
**Category:** Support
**Created:** [2018年十一月24日 14:54 UTC](https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670 "2018-11-24T14:54:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![qinyj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qinyj/32/204391_2.png) [@qinyj](https://meta.discourse.org/u/qinyj)
#### Post date: [2018年十一月24日 14:54 UTC](https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670/1 "2018-11-24T14:54:16Z")

</div>

Hey, I’m from china. For some reason, port 80 is baned in China so I’m using a custom port to build Discourse.  
But now I have some problem. I found that if I don’t use port 80, pictures or emoji will not show. So I turned to app.yml and I found the code like`DISCOURSE_HOSTNAME: discourse.example.com`.  
I edit that code into `DISCOURSE_HOSTNAME: discourse.example.com:myPort`, pictures and emoji show with no error, but avatars don’t show.  
I don’t know how to fix that, Does anyone have met that problem?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年十一月24日 20:31 UTC](https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670/4 "2018-11-24T20:31:52Z")

</div>

Discourse only supports running at the default ports. You will need to proxy if you want it to go through different / non-standard ports.

---

<div class="post-metadata">

### Author: ![qinyj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qinyj/32/204391_2.png) [@qinyj](https://meta.discourse.org/u/qinyj)
#### Post date: [2018年十一月25日 00:59 UTC](https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670/5 "2018-11-25T00:59:16Z")

</div>

OK.Thank you, I will try that.

---

<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: [2021年九月21日 04:56 UTC](https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670/6 "2021-09-21T04:56:08Z")

</div>



---

<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: [2024年二月9日 07:58 UTC](https://meta.discourse.org/t/avatars-don-t-show-with-a-custom-port/102670/7 "2024-02-09T07:58:41Z")

</div>

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