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

Strip PGP signatures

$
0
0

@fefrei wrote:

I have a small request, very similar to this one:

Could Discourse also strip PGP signatures, named signature.asc?

Posts: 2

Participants: 2

Read full topic


Safe to delete postgres_data_old?

$
0
0

@kcoop wrote:

Running low on disk space, discovered 5.5Gb postgres_data_old in /var/discourse/shared/standalone. File dates at least a few weeks old.

See it referenced in a few places here, guessing it's part of a backup that's no longer needed. Is it safe to delete?

Posts: 2

Participants: 2

Read full topic

Badge SQL can no longer be edited by default

$
0
0

@sam wrote:

Starting from Discourse 1.6 badge sql can no longer be edited by admins unless explicitly enabled.

This change was made for a couple of reasons

  1. Security: allowing admins to enter SQL directly allows them raw access to the database, generally we are opting that raw access to the database from the web UI is a feature you opt-in for. Even though the queries only return user_ids, an admin attacker can discover any information in the database using badge queries. If column A of table Y has the letter A in it return user_id 1 else 2.

  2. Performance: getting badge SQL "just right" is an art, it is not something that is trivial for admins to do correctly. There is huge amount of risk that people who are not experts can create enormous load on a database by entering bad SQL

You can still get full authoring access by running:

./launcher enter app
rails c
> SiteSetting.enable_badge_sql = true

If you are a Discourse customer, contact @team and we will enable it for you if needed.

SiteSetting.enable_badge_sql = false (the default) disables all new badge SQL authoring. Existing badges will continue to work just fine with the SQL you have created. You can safely disable badge SQL after authoring your required badges for extra safety.

Posts: 2

Participants: 2

Read full topic

Updated Discourse, broke my app.yml?

$
0
0

@eisbaerBorealis wrote:

A few months ago I installed a very basic Discourse forum. I forgot about it for a while and a few days ago I did the in-browser update at the request of the admin alert (my forum is currently down, so I'm afraid I can't supply screenshots or exact quotes of what happened). I refreshed the page, and the "please update" alert was still there. I went to the update page and it said I needed to do an update via command line; ssh into the server and use the following commands:

cd /var/discourse/
git pull
./launcher rebuild app

I did so, and got the following error:

(<unknown>): did not find expected key while parsing a block mapping at line 40 column 3 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

I did not change the app.yml file, and the forum was working fine before the update; now "this site can't be reached" and "refused to connect". Nothing looks out of place in my app.yml file. I've tried using http://www.yamllint.com/, but that hasn't helped. I've messed around with the whitespace and managed to get a valid .yml file, but the resulting near-empty .yml file hasn't brought back the forum.

I've also tried

apt-get clean
./launcher cleanup app
./launcher rebuild app

Which doesn't work, either.

Here's the app.yml file. I'm pretty sure I've removed any sensitive information.

## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"

## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
  - "80:80"   # http
  - "443:443" # https

params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  db_shared_buffers: "128MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8  ###This is the "offending" line###
  # DISCOURSE_DEFAULT_LOCALE: en

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 2

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: <hostName>

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: <email list>

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: <address>
  #DISCOURSE_SMTP_PORT: 587                        # (optional, default 587)
  DISCOURSE_SMTP_USER_NAME: <username>
  DISCOURSE_SMTP_PASSWORD: <password>
  #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com

  ## The CDN address for this Discourse instance (configured to pull)
  ## see https://meta.discourse.org/t/14857 for details
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

## The Docker container is stateless; all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "End of custom commands"

Not sure where to go from here. I'm not sure if a fresh install would wipe out the users and threads, or if where that data is stored so that I could back it up. I'm hoping that I'm a single whitespace away from a functioning .yml file or something, but I have no idea what to expect.

Posts: 8

Participants: 4

Read full topic

Can we have page specific css classes?

$
0
0

@vinothkannans wrote:

Currently we have css classes like desktop-view not-mobile-device no-touch for html tag

Like this can we have page specific css classes in html tag or in any other tag like #main-outlet div? For example .home class in home page and .category.support css class in 'support' category.

It will give many possibilities to customize display via css. For example I can hide 'New Topic' button in home only via below simple css

.home #create-topic {
 display: none;
}

It will helpful when using jQuery css selectors too.

Posts: 3

Participants: 2

Read full topic

Linking Discouse accounts

$
0
0

@Riley_Dunshea wrote:

Hey I was wondering if there is any way to link your meta.discourse account to another discourse community?
Thanks for the help!:+1:

Posts: 2

Participants: 2

Read full topic

Forum upgrade crashing at Upgrade `docker_manager`

$
0
0

@modius wrote:

My forum is crashing at this point in a web based upgrade; sends CPU to 100% and I have to reboot the server to recover; standard vanilla 2GB Droplet at DigitalOcean.

In Upgrade docker_manager

***  Bundling assets. This might take a while ***
$ bundle exec rake assets:precompile
Purging temp files

Are there any manual steps to force an upgrade from the command line that might fare better?

Note, I realise it says it may take a while :wink: but its only a small forum and it never seems to recover.

Posts: 3

Participants: 3

Read full topic

Error after rebuilding the launcher

$
0
0

@Pad_Pors wrote:

I have rebuild our forum, and got this error at the last point of rebuilding (when it is telling me redis is shut-downing, and bye bye) :

Error response from daemon: Untar re-exec error: exit status 1: output: write /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/listen-0.7.3/lib/listen/directory_record.rb: no space left on device

this means I have lack of space on the host, but then when i look at the host-space it's something like this:

and

is the problem no-space problem or can anyone help me with this please?

two weeks ago i could rebuild the forum without problem, but i can't do this now. and our forum has not evolved that much during this 2 weeks. so i don't suppose anything should happen :frowning: !

Posts: 6

Participants: 2

Read full topic


Missing blanks in server.en.yml

Discourse server FQDN & email settings help?

$
0
0

@Mattzees wrote:

Hello World,

I've got a Discourse server running at home for testing purposes (it looks awesome, btw) but I'm confused about how to configure the FQDN and email settings. I had to gain access to an administrative account through the command line, so that's done, but I still need to get email working.

Here's the situation:

Discourse server is on my home LAN.
The hostname = myhomeserver

I have a email account configured with my webhost for the server to access in order to send out confirmation emails. This email account is tested and working, so I know the problem is not with the account or my webhosting company. Let's call this account "admin@mywebhost.com"

I have a FQDN via Dynamic DNS that I can use to make the Discourse server reachable from the WAN. Let's call it "myFQDN.com"

How do I configure Discourse to use an email account at "mywebhost.com", but be reachable at "myFQDN.com"?

I apologize if this is super easy, but I'm not getting it. Thanks.

--Matt

Posts: 1

Participants: 1

Read full topic

How to search for special characters like `:=`

$
0
0

@pluranium wrote:

Hi - we use Discourse for our forum web site http://forum.skookumscript.com/. It's for a programming language, so users want to occasionally search for special characters sequences like :=. This does not seem to work. Also reducing the min search term length to 1 does not seem to help. Is there a way to search for special characters like that? Thanks!

Posts: 1

Participants: 1

Read full topic

Event Listeners for footer loaded

$
0
0

@e_division wrote:

Hi! I was looking through old forum posts looking for a way to listen for page loads, specifically the footer but found possible outdated or deprecated solutions. The problem I am facing is that there is no current way of embedding javascript into the footer and need to be able to target some items within the footer which is why I thought of trying to listen for some type of event that is fired after the footer is loaded.

Is the footer unloaded and then reloaded on every content refresh or is it always there after the initial load?

The solution I found involved tapping into the Discourse.View.reopen({...}) method. Is there something similar in Discourse in it's current iteration?

Posts: 6

Participants: 2

Read full topic

What's the best way to "like" part of a post?

$
0
0

@Drew_Warwick wrote:

Liking shows you agree with a post, saving you the trouble of posting a duplicate and clogging up the topic. But what if you only like part of a post? Someone might say something that I really agree with, but in the same post say something I extremely disagree with. I don't want to like the post and make it seem as if I also agree with the portion I disagree, so what should I do?

Normally I just quote the part I do like and then say I agree with it, and now other people who only agreed with that part can like my post to show their support for that bit instead of liking a post that contains something they strongly disagree with. But is there a better way to do this? I'm still posting something that's a duplicate of existing content in the thread.

Posts: 3

Participants: 2

Read full topic

Meta.discourse.org User Profile SummaryTop Badges issue

$
0
0

@RChesley wrote:

Looking at the profile summary today and saw Top Badges...

The Basic User Badge is displaying html it should not display.

I tested on my own Discourse and it works as expected.

Posts: 3

Participants: 2

Read full topic

Can users post anonymously without logging in? (And, if so, can you require acceptance of site Terms of Use before posting?

$
0
0

@cll321 wrote:

Backstory: I'm launching a Worldpress blog for certain types of new lawyers. I'd like to use Discourse (as opposed to bbPress, etc.) for a related web forum where users can carry on conversations related to posts and ask their own questions, etc. I'd like to allow users to post in the forum without logging in. Is that possible? (A lot of these young lawyers won't want to give any personal details in case their firms wouldn't appreciate what they have to say. Not that I'd share any information with them anyway, but I'm worried about driving away potential contributors all the same.)

If that can be done, is it possible to require those same anonymous posters to accept (check a box) my site's Terms of Use and Privacy Policy before posting? (You can accomplish this with bbPress using some WP plugins. For a few reasons, I'm committed to requiring this of everyone before they contribute any content to the blog or forum.)

Thanks so much!

Posts: 1

Participants: 1

Read full topic


When does the "System" user read topics?

$
0
0

@Tyler_Humphress wrote:

Working with the API and I'm curious both what the 'unseen' entails for topics, and when the system user "reads" a topic? I'm looking to posting new threads to a Discord server and was going to base it off of the unseen bool, though I'm thinking unseen is also back to true when someone else posts in the topic, and I'm thinking using system as the api username is a bad idea since there's no guarantee it'll see a topic that has yet to be posted.

Posts: 2

Participants: 2

Read full topic

Tag intersections page

$
0
0

@gdpelican wrote:

I'm currently working with @bedhed in the preliminary stages of working on the bidirectional nav / Table of Contents features described here.

One slightly large piece missing from this work is a page which could display an 'intersection' of tags, (ie, topics which have both the 'pr-welcome' and 'votes-friendly' tags). A mockup is here:

Two questions:

  1. Is this a change that would be welcome / tolerated in core, if it were true that it didn't change any existing functionality? (This strikes me as a change which is easier to make in core, rather than in a plugin)
  2. (if no) Are there folks out there that would be interested in this functionality as its own separate plugin, rather than bundled up with the Table of Contents stuff?

Posts: 1

Participants: 1

Read full topic

Logo disappearing

$
0
0

@srikanth413 wrote:

hi to discourse,

i have one forum and customized a logo . customizing logo by creating a topic by uploading a logo image then getting the logo path and using that logo path in admin -> settings -> logo url and logo small url ->updating the path.

by this way i uploaded logo many times, but after one week the logo get disappearing.please give a better solution to fix the logo issue.

Posts: 3

Participants: 3

Read full topic

Embed user gallery in a post

$
0
0

@tobiaseigen wrote:

I have a use case where I'd like to be able to introduce a handful of users in a visually compelling way in a post. I think it would be handy to be able to add e.g.

[usergallery]@user1 @user2 @user3 @user4[/usergallery]

or

[usergallery]@group1[/usergallery]

and have it automatically display a selection of users including key user card info like picture, name, title, country.

Posts: 1

Participants: 1

Read full topic

Can't disable "Watching first post"

$
0
0

@SidV wrote:

Hello Guys.

Steps for replay:

  1. Go to #support (here at discourse).
  2. Clic and enable "Watching first post"
  3. Go outside, see the sun, run, play with your dog, etc...
  4. Visit #support again.
  5. Disable "Watch the first post"

    Everything appears to be fine.
    BUT...
  6. Press F5, to refresh your browser.
  7. And you will see that the icon from "Watching first post" again. :frowning:

So... how I disable now? :cry:

Posts: 2

Participants: 2

Read full topic

Viewing all 60613 articles
Browse latest View live




Latest Images