# Uploads location on dev instance?

**URL:** https://meta.discourse.org/t/uploads-location-on-dev-instance/265829
**Category:** Development
**Created:** [May 22, 2023, 6:12pm UTC](https://meta.discourse.org/t/uploads-location-on-dev-instance/265829 "2023-05-22T18:12:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [May 22, 2023, 6:12pm UTC](https://meta.discourse.org/t/uploads-location-on-dev-instance/265829/1 "2023-05-22T18:12:26Z")

</div>

I’m back to developing plugins after hiatus. I’ve followed the basic guide [Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727) to install a dev instance.

Dev instance `hostname` is set correctly in `/discourse/config/discourse.conf`. Uploading works, but uploads are still targetting URL `http://127.0.0.1:3000/...` instead of `http://hostname:4200/...`

I haven’t found any other setting in `/discourse/config/` or in admin panel.. Where should I correct it?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [May 22, 2023, 6:15pm UTC](https://meta.discourse.org/t/uploads-location-on-dev-instance/265829/2 "2023-05-22T18:15:00Z")

</div>

There’s a `force_hostname` and `port` setting in `config/site_settings.yml` you can use

---

<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: [June 21, 2023, 6:15pm UTC](https://meta.discourse.org/t/uploads-location-on-dev-instance/265829/3 "2023-06-21T18:15:53Z")

</div>

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