# How to create local Discourse with only http (no https)?

**URL:** https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836
**Category:** Self-hosting
**Created:** [March 25, 2024, 2:40pm UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836 "2024-03-25T14:40:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)
#### Post date: [March 25, 2024, 2:40pm UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836/1 "2024-03-25T14:40:32Z")

</div>

> [@Discourse setup script hostname validation for Let's Encrypt](https://meta.discourse.org/t/discourse-setup-script-hostname-validation-for-lets-encrypt/141911):
>
> I don’t think that’s the case anymore. [https://github.com/discourse/discourse\_docker/commit/026a664e77844c7b0d67a5609f08e67f1e436d5f](https://github.com/discourse/discourse_docker/commit/026a664e77844c7b0d67a5609f08e67f1e436d5f)

I’m trying to install discourse on my laptop to do some tests before making changes on my real version. (writing scripts that will run on the real docker instance)

My laptop has no domain name, so I can’t get a let’s encrypt SSL certificate.

How does one go about installing a http only instance?

I comment out SSL lines in app.yaml and try to bypass ssl in `./discourse-setup --skip-connection-test` but the bootstrap fails:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 3649 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

```

---

<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: [March 25, 2024, 2:42pm UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836/2 "2024-03-25T14:42:00Z")

</div>

This is not suitable for a local install. The [standard install](https://meta.discourse.org/t/142537?silent=true) is meant for cloud deployment.

Use a #dev-install

---

<div class="post-metadata">

### Author: ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)
#### Post date: [March 26, 2024, 12:28am UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836/3 "2024-03-26T00:28:18Z")

</div>

It should be possible somehow as I have an install running on localhost on my desktop computer, but can’t remember how I did it.

I’m trying to get it done on my laptop before I go on a trip.

---

<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: [March 26, 2024, 7:53am UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836/4 "2024-03-26T07:53:45Z")

</div>

I see no value in wasting time here. Go the well trodden path and use a Dev install. There’s even a docker one!

---

<div class="post-metadata">

### Author: ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)
#### Post date: [May 22, 2024, 7:27am UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836/5 "2024-05-22T07:27:56Z")

</div>

I managed to get this working. In the YAML file comment out lines relating to port 443 and Let’s encrypt. Then use `./discourse-setup --skip-connection-test`

I set it up with `localhost` as the hostname and it worked. I think last time, it didn’t work because I forgot to comment out the Let’s encrypt lines.

---

<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, 2024, 7:28am UTC](https://meta.discourse.org/t/how-to-create-local-discourse-with-only-http-no-https/300836/6 "2024-06-21T07:28:05Z")

</div>

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