# דיון על Raspberry Pi | בלוג

**URL:** https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357
**Category:** Blog
**Created:** [7 בדצמבר,‏ 2021,‏ 2:00pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357 "2021-12-07T14:00:29Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [17 באוגוסט,‏ 2022,‏ 4:45pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/22 "2022-08-17T16:45:22Z")

</div>

> [@pi88](#):
>
> I got a use case where my client machine is connected to some VPN and have no access to internet. The only way for me to access the forum is through the local network ip address.

Maybe hardcode that IP in your local hosts file?

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [18 באוגוסט,‏ 2022,‏ 2:03am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/23 "2022-08-18T02:03:13Z")

</div>

Thanks Falco! I will check that out.

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [18 באוגוסט,‏ 2022,‏ 5:44am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/24 "2022-08-18T05:44:50Z")

</div>

> [@Falco](#):
>
> > [@pi88](#):
> >
> > I got a use case where my client machine is connected to some VPN and have no access to internet. The only way for me to access the forum is through the local network ip address.
> 
> Maybe hardcode that IP in your local hosts file?

I tried hardcode the IP in my client’s hosts file, and the browser always redirect me to the external connection.  
Is it possible to provide more than one domain name to the `DISCOURSE_HOSTNAME`?  
Do i need to set `DISCOURSE_FORCE_HTTPS:` to false to allow local connection? I got this from one of your article.

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [18 באוגוסט,‏ 2022,‏ 9:29am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/25 "2022-08-18T09:29:34Z")

</div>

I am trying to install Discourse on my Raspberry Pi 4 using Dietpi OS and some apps working with Nginx like Nextcloud. I am trying to use Cloudflared service as a tunnel but after the Discourse installation is complete I can’t access Discourse site and i got 502 bad gateway error.

What kind of customization is required on Nginx? Which port should we use?

I applied this guide but without success

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [18 באוגוסט,‏ 2022,‏ 2:30pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/26 "2022-08-18T14:30:50Z")

</div>

My guide assumes that Discourse is the only app on the Pi, and then runs the tunnel exposing the port 80 that is assigned to the Discourse container.

Running multiple apps that share a reverse proxy, while possible, is a more advanced setup and out of the scope of this guide.

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [22 באוגוסט,‏ 2022,‏ 7:13am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/27 "2022-08-22T07:13:22Z")

</div>

I got this working by setting DISCOURSE\_BACKUP\_HOSTNAME to machinename.local and DISCOURSE\_FORCE\_HTTPS to false. Now i can access with my domain name and local network domain name.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [22 באוגוסט,‏ 2022,‏ 8:19am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/28 "2022-08-22T08:19:17Z")

</div>

Well done. Maybe should be a How To in #howto:admins ?

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [24 באוגוסט,‏ 2022,‏ 5:20am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/29 "2022-08-24T05:20:58Z")

</div>

Thanks @merefield. Sure!  
There is one problem when using a backup hostname, the images doesn’t display properly.  
If the post’s images created with main hostname and when access with the backup hostname, the images will be missing. This also happens in vice-versa.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [24 באוגוסט,‏ 2022,‏ 5:23am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/30 "2022-08-24T05:23:16Z")

</div>

What happens when you rebake a Post? (Rebuild HTML)

Perhaps you will need to stick to one access address.

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [24 באוגוסט,‏ 2022,‏ 5:28am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/31 "2022-08-24T05:28:17Z")

</div>

Yeah, Rebuild HTML works. But the vpn access is broken because it depends on the local address (backup hostname).

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [24 באוגוסט,‏ 2022,‏ 12:36pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/32 "2022-08-24T12:36:30Z")

</div>

i guess there is no solution to this…

> [@Need relative URLs for uploaded images](https://meta.discourse.org/t/need-relative-urls-for-uploaded-images/126128/7):
>
> Just to add a voice and to agree with @sam, we’ve already had some switcheroos with our domains and relative URLs is most certainly needed.

---

<div class="post-metadata">

### Author: ![Kosmas\_Giannoutakis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kosmas_giannoutakis/32/272421_2.png) [@Kosmas\_Giannoutakis](https://meta.discourse.org/u/Kosmas_Giannoutakis)
#### Post date: [30 באוגוסט,‏ 2022,‏ 3:32pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/33 "2022-08-30T15:32:17Z")

</div>

Will this work on an armv7l?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [30 באוגוסט,‏ 2022,‏ 3:43pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/34 "2022-08-30T15:43:31Z")

</div>

No it won’t. I did try, but there are some missing packages on the 32 bit ARM debian repositories that made it a no go.

---

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [24 בנובמבר,‏ 2023,‏ 12:55am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/35 "2023-11-24T00:55:58Z")

</div>

The demo site link seems dead

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [24 בנובמבר,‏ 2023,‏ 1:33am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/36 "2023-11-24T01:33:30Z")

</div>

Same as [before](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/15), I moved houses again. Will plug it back on as soon as I can find it.

---

<div class="post-metadata">

### Author: ![eh223](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eh223/32/348349_2.png) [@eh223](https://meta.discourse.org/u/eh223)
#### Post date: [12 בדצמבר,‏ 2023,‏ 7:55am UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/37 "2023-12-12T07:55:13Z")

</div>

now that is the kind of infrastructure bug i like to deal with 😂

looking forward to giving this a whirl 💫

hope you’re settling in well to your new place @Falco 😌

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [12 בדצמבר,‏ 2023,‏ 4:29pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/38 "2023-12-12T16:29:37Z")

</div>

@th21 it’s now back up.

@eh223 thanks 😄

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [16 בדצמבר,‏ 2023,‏ 12:50pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/39 "2023-12-16T12:50:45Z")

</div>

So I recently got one of these: 👍 👍

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/3/e/a3e16190ea6851ee2acf7f32f5d94d053dc104c1.jpeg)

👀 ![20231216_12h54m40s_grim](https://global.discourse-cdn.com/meta/original/4X/d/7/b/d7b593632e4a42047354706b095fa3aef7edd560.png) 👀

And decided to get the development install running, which tbh required a significantly manual effort as the scripted solutions don’t work at present, but 🎉

 ![20231216_12h40m46s_grim](https://global.discourse-cdn.com/meta/original/4X/7/9/d/79d82463c025496766a8dd2f41440268a4167690.png)

Thanks to everyone who’s made this possible, very cool indeed! 🙏

---

<div class="post-metadata">

### Author: ![KaraokeAmerica](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karaokeamerica/32/197827_2.png) [@KaraokeAmerica](https://meta.discourse.org/u/KaraokeAmerica)
#### Post date: [18 בדצמבר,‏ 2023,‏ 7:40pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/40 "2023-12-18T19:40:40Z")

</div>

> [@merefield](#):
>
> And decided to get the development install running, which tbh required a significantly manual effort as the scripted solutions don’t work at present

What “scripted solutions” work on ANY Pi? I have a few Pi4’s that would like to try this one, but not being a Linux guru, I don’t have the knowledge to deal with manual “dependencies”.

I do have a recursive PiHole running on my network though which I think will allow me to at least deal with the doman name issue…maybe.

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [19 בדצמבר,‏ 2023,‏ 8:55pm UTC](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357/41 "2023-12-19T20:55:49Z")

</div>

Been very happy with mine. I would recommend

- 8gb Raspberry Pi since mine is regularly hitting 4gb
- SSD disk. Microsd is too slow.

[Previous page](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357.md?page=1)

[Next page](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357.md?page=3)
