Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60309 articles
Browse latest View live

Setting up SSL with my domain name and Discourse instance

0
0

@bob77707 wrote:

Hey there, I've been spending a few days trying to get my Discourse site running exactly how I'd like it, but I've run into some problems along the way. I'll do my best to outline the issue below, but please forgive me if I do a poor job explaining anything.


What I'd like to accomplish:

  • Create an SSL certificate using Let's Encrypt and access my site by navigating to https://example.com or https://www.example.com


Some notes on my installation of Discourse:

  • I am currently running Discourse on a VirtualBox instance of Ubuntu 16.04.1 server.

  • I can access the site from outside my home network through port forwarding using a different port other than 80 (My ISP blocks 80). An example of what I would navigate to is: 34.7.74.33:123

  • I purchased a Google domain and linked it to my Discourse site. I've been able to access it by www.example.com:123, but never without including the port.

  • I've tried redirecting the domain name to my public IP. Like: example.com -> 34.7.74.33:123 which allows me to access the site without using the port, but it doesn't keep the domain name, it's just a redirect.


What I've tried:

  • My ISP hasn't blocked the https port (443), so I would like to certify my site in order to utilize that port. It's my understanding that if I use https as the protocol, it will automatically try to use that port.

  • I've edited my app.yml to include all of the information specified in the howto tutorial for using Let's Encrypt with Discourse.

  • After trying various configurations of my domain settings, I always get the error "...Verify Error:Could not connect to ..."

  • When I ls -l the ssl folder, I have had different results. Sometimes one file is created, sometimes all three, but one constant is that the .cer file is always empty/missing.

I realize there are a lot of points in this topic, but if anyone has suggestions for any of the aspects, I would love to hear them! Thank you for reading :slight_smile:

Posts: 1

Participants: 1

Read full topic


"Out of range for ActiveRecord" Error

0
0

@AshishS wrote:

Hi
I am getting this error :
"529996652356 is out of range for ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Integer with limit 4" when I am approving a post

Any pointers on this?

Posts: 1

Participants: 1

Read full topic

Removing the ability for moderators to suspend

0
0

@dGr8LookinSparky wrote:

Is there a setting that disables moderator's ability to suspend users? I would think that blocking would be sufficient enough for moderators, and suspensions would be best reserved for admins as suspended members can't pm staff to appeal as I understand it.

Posts: 1

Participants: 1

Read full topic

Vanilla Migration Issue

0
0

@mmuyskens wrote:

Not sure if this is the correct tag - however;

vanilla.rb errors out at line 240 if null date fields. Suggest if statement to replace null with 0000-00-00 00:00:00

Thanks,

Mark

Posts: 4

Participants: 2

Read full topic

Postgres & Redis version for Production server

0
0

@junaid_pk14 wrote:

Hello,

We are going to deploy discourse in next 2 weeks. I want a recommendation from Discourse team about Postgres & Redis versions. On dev we have Postgres 9.2.15 and Redis Server 2.8.19.

Following are new version of both
1-Postgres 9.2.15 is old version and 9.6.0(https://www.postgresql.org/docs/9.6/static/release-9-6.html) is the latest version with lot of improvements.
2-Redis new version 3.2.

What you recommend for high performance. Is there any recommendation about Postgres replication?

Junaid

Posts: 2

Participants: 2

Read full topic

JSON API, get topics sorted by created_at

0
0

@m45t3r wrote:

Hi

I am developing a blog-like interface for a private Discourse deployment based on the JSON API from Discourse. The idea is simple: the owner of the Discourse is the only one that can post questions in a certain category. This category will be used as a base for the posts in the blog.

The problem is, I can't figure out how to get the topics sorted by created_at. /latest.json is almost there, however it sorts by last_posted_at, so if I made a blog based on latest.json the top posts would be the post last commented by an user, not the more traditional most recent created post.

Btw, the Discourse API documentation seems to be really outdated, since I discovered for example that passing /latest.json?page=1 allow me to see the next 30 topics (each call from the API gives at most 30 topics and this does not seem to be documented anywhere).

Posts: 6

Participants: 3

Read full topic

Configuring Instagram login for Discourse

0
0

@ewanly wrote:

I couldn't find any thing related to howto: Configuring Instagram login for Discourse

I did used the example of Facebook for call back "community.example.com/auth/instagram/callback" but I'm getting the following error:

{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}

Page link of the error:
https://www.instagram.com/oauth/authorize?client_id=57eda12354698778eb99e&redirect_uri=http://community.EXAMPLE.com/auth/instagram/callback&response_type=code&scope=basic&state=8c5a1d554gtytfghfg54a4ea5a8ec12


I just noticed that Instagram is so different comparing to Facebook or Twitter. After you configure your account and get your keys, you are able to use them only in their sandbox mode. If you need to use them in real life you need to submit a request for permission :open_mouth:.

So I just did it. My request still in pending for permission. I'll try again after their approval and I'll update the result in here.

Posts: 3

Participants: 1

Read full topic

Username_no_double_special Any reason to enforce it?

0
0

@CrosseyeJack wrote:

Hey, we are planning to use Discourse linked with sign in from an outside oauth. The thing is some of our existing users have 2 or more "special" chars in their username and username_no_double_special is trying to remove the extra.

So before I hack the forum to bits to remove "username_no_double_special" is there any security reason (or any other reason) for it to remove the extra special chars or is it just to make usernames look nicer?

EDIT: to bits I mean just remove the call from username_validator.rb for now, and maybe later put a switch in admin to allow the feature or not.

EDIT2: guess I will have to modify sanitize_username too.

Posts: 2

Participants: 2

Read full topic


How can I add "dislike" button?

0
0

@G3M1N1 wrote:

Hi,

I want to add dislike button on every comment. Is there any plugin or something about that? Can you help me guys? Thanks.

Posts: 5

Participants: 4

Read full topic

Multiple development instances

0
0

@pfaffman wrote:

On my development box, I find myself needing multiple instances. One site I'm importing is on stable, others use importers that I am developing. Right now what I do is when switching jobs, I switch branches in git and run a script that does

RAILS_ENV=development
export RAILS_ENV
RAILS_ENV=development bundle exec rake db:drop db:create db:migrate
bundle exec rake admin:create

It's really annoying when I've, say, run an importer that takes several hours and then want to run it again with updated input (and not have to re-import the whole thing).

Is there something different I should be doing? Perhaps I should run separate instances with Vagrant? Contrive to tell Discourse to use a different database for each different job?

Or am I doing the Right Thing?

Posts: 1

Participants: 1

Read full topic

New category automatically as muted or watching for all users

0
0

@Manfred_Bayer-Lemerz wrote:

When we add a new category it is automatically as normal for all user can we also set that has a different status like watching or muted?

Posts: 2

Participants: 2

Read full topic

Plugin Questions: TopNav Dev Group Tracker

0
0

@LilTrashPanda wrote:

Continuing the discussion from How to add a new tab with content from a group?:

I've just installed the plugin that adds a "Dev Tracker" to your top navigation bar and links to the Developers group page: https://[url]/groups/developers

Couple of questions (I suppose mainly for @eviltrout):

  • Is it possible to make it so this feed can work for the group named "Developer" instead of "Developers"?
  • Can this Dev Tracker link instead to the posts (https://[url]/groups/developers/posts)?
  • When new posts are made by those in the Developer/Developers group, can a counter be added to the TopNav button to draw the attention of visitors?

I'm extremely new to GitHub (this is the first plugin I've installed on my own... before that I was having my IT manager do it out of fear of screwing something up), so forgive my ignorance. I really like the plugin, just curious as to how flexible it can be! :slight_smile:

Thanks!

Posts: 2

Participants: 2

Read full topic

Global Notice: Background image and color disappears frequently

0
0

@LilTrashPanda wrote:

I've updated the CSS of the Global Notice (#ember811 and .alert.alert-info) to appear different in 5 specific categories (still default on Main Page and other categories), however I've noticed that either when using the "Back" shortcut to go from a "child" category to a "parent" (both of which share the edited CSS) or navigating to the Main Page and then back in to one of the categories that has the edited CSS, there are times when the Global Notice loses its background image and color entirely.

Although I'm not certain of the exact steps needed to reproduce this issue, it does happen fairly often and requires a hard refresh (ctrl+f5) to bring those elements back.

Normal:

Bugged:

Here's my CSS related to the Global Notice:

#ember811 {
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  background-image: url("http://www.deformers.com/_images/bgrd-iconX991.png");
  background-repeat: no-repeat;
  background-position: left;
  background-color: #7c6ba3;
  border: 10px solid transparent;
  border-radius: 6px;
  margin: 5px 0 20px 0px;
}

.alert.alert-info {
  color: #f4f4f4;
  background-color: rgba(244, 244, 244, 0);
  //width: 84%;
  padding: 10px;
  margin: 0px 0px 0px 170px;
}

Posts: 3

Participants: 2

Read full topic

Receiving notifications about completed suspensions

0
0

@jomaxro wrote:

Continuing the discussion from Receiving notifications about suspending/blocking users:

The discussion in the above topic about notifications when a user is suspended/blocked reminded me of a situation where a user's suspension ended and none of the staff were aware. This didn't end up being an issue, but we would have liked to have known that this was happening/about to happen.

Can staff (or just moderators) be notified when a user is about to complete their suspension? Perhaps as a group PM?

Posts: 2

Participants: 2

Read full topic

Official Slack integration for Discourse


Is it possible to write a custom client other than a web browser?

0
0

@Samuel_Crow wrote:

I would like to make a micro-sized lightweight forum-browser style client for directly interfacing with the ReST of a server-side forum.

Among the requirements are that the format not be ordinary HTML but XHTML, custom XML or JSON instead. In this way, I can use a simple library to parse the markup from the forum. Another less stringent requirement is that images be able to open on a full-screen display with only a shallow color-depth thumbnail to indicate its contents. CSS won't be needed either because I will be replacing the customization with native GUI elements.

Will this require a plug-in? Is the Ruby on Rails portion of Discourse up to the task? Will I run into hard-coded limits?

One final note: I don't have a Postgres SQL host right now so if I can't do it I need to know so I can look at other ReST interfacing forum software that will work with my current host.

Posts: 3

Participants: 2

Read full topic

Send a new Mail when a posting is edited when “email time window mins” is over?

0
0

@Manfred_Bayer-Lemerz wrote:

When a user edit a posting after the Mail about a new posting is end out (defined with “email time window mins”) can discourse send out a new mail or would this be a feature request?

thanks for your help!

Posts: 2

Participants: 2

Read full topic

Email templates - user_watching_first_post - not available

0
0

@sniepoort wrote:

You recently added another email template that was missing (custom_invite_forum_mailer). Thanks!

Could you also add this one that I just noticed is also missing - user_watching_first_post? You would think that it would use the user_posted template, but it doesn't.

Furthermore, when looking at mails sent with the user_posted email type, it isn't using our subject line correctly. Is there more logic to it than meets the eye?
We have the subject as: [%{site_name}] %{subject_prefix}%{username} wrote a post in '%{topic_title}'
However, a new topic (without any posts), just generates [%{site_name}] %{subject_prefix}

Posts: 1

Participants: 1

Read full topic

Webhooks - documentation?

When Do I scale?

0
0

@Olawale wrote:

Top top job!
This is no mean feat considering this is my fifth attempt at creating a community for my followers.
Dabbling with Social Engine (Twice) Vbulletin and Burning Boards!
Finally, I can call this home.
So, I spin this server config:

Memory: 1224 MB
Storage: 25 GB
Transfer/Bandwith: 1000 Gb

I currently unveil and within 2 days 16 users.
Now, with your experience, when do you think I should scale and add to the config above?
When I reach 200 users? 1,000 users? Any figure that seems reasonable to you with experince.
Note, I do not have any plugin installed for now, this is just straight out of the box/docker :smiley:

Thanks!

Posts: 5

Participants: 4

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images