How to install discourse without ssl?

Is it possible to install without https and then implement your own ssl from hosting ?

1 Like

Yes, but that requires not using the ./discourse-setup script and editing your app.yml manually. It is not a recommended setup unless you are familiar and willing to tweak the setup.

5 Likes

Can I edit the file and use the / launcher rebuild ?

Could you explain why the free integrated SSL isn’t an option for you?

5 Likes

I have a problem with cdn configuration (e.g. forum loads without style the same as with javascript disabled) and I prefer to integrate my own ssl for this purpose. For a long time I’m wondering how to install a forum without https first?

1 Like

And you’re blaming the built-in SSL encapsulation for that?

It has nothing to do with the certificate.

http://xyproblem.info/

1 Like

I’m supposed to solve problems in the dark? Forgive me but I’m just learning and it’s hard to learn without making mistakes. I ask questions that are only answered by a question.

1 Like

No, you’re supposed to ask for help by outlining the problem. It’s much more effective than asking vague questions about guesstimate solutions.

If you want to share more info we can get to the bottom of this relatively quickly.

6 Likes

Trying to set up cdn via cloudfront.

and unfortunately, the page only displays well when it sets the Origin Protocol Policy to HTTP Only . When I enter sitenumbers.cloudfront.net, it displays the page in its entirety (but redirects to to main domain also as well). // Anyway, in this case, the website is still loading even longer than without cdn, so it makes no sense at all.

When I set the cloudfront to Origin Protocol Policy : Match Viewer, the page only displays without styles, just like with javascript turned off. // but website is loading very fast

And I don’t know if it’s caused. That’s why I want to try the forum without ssl.

1 Like

./discourse-setup will serve http pages if you don’t provide an email address for let’s encrypt. No need to edit by hand.

That is true.

If what you want is a CDN, then you should see Enable a CDN for your Discourse. Disabling http is possible as described above but will almost certainly not solve your problem.

4 Likes

Thanks. I tried to edit the app.yml and use rebuild but the page didn’t turn on. So I understand that in this case you have to install the app again ?

How is that different (discourse-setup vs rebuild ) ? I understand that there are no changes on the site ?

1 Like

That’s because you did something wrong. It probably has to do with spaces.

If what you want is a CDN, your best bet is probably to

cd /var/discourse
docker stop app
docker rm app
rm containers/app.yml
./discourse-setup

and then follow the instructions in the link I provided earlier.

Good luck.

7 Likes

Thanks to this guide I use it but I have a problem with cloudfront - you write yourself:

CloudFlare CDN and Discourse have not historically played well together, so we do not recommend running CloudFlare CDN at this time.

But I can see that you have the side well set on the cloudfront. So it works, right?

1 Like

@pfaffman :cry: :sleepy:

Use whatever CDN you want. Even cloudflare will work fine if you configure it as a CDN and not blindly put it in front of the whole site.

1 Like

8 posts were split to a new topic: Discourse setup script hostname validation for Let’s Encrypt

Then how am I gonna install ( force working installations) without https and only with http ?

You’ll need to comment out the two lines near the top that turn on let’s encrypt and ssl

These two:

  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"

But again, I don’t think that doing that will solve anything.

5 Likes

Well, it’s not that simple. Can you tell me how your forums configured cdn with cloudfront ?