Self-hosted discourse instance appending "7d" to the FQDN

Hello everyone,

I am new to Discourse self-hosting. I am installing this on a server that’s running other web services. So I have my own Nginx, which will proxy connections to the Discourse container. I also have a full-fledged SMTP server to handle the emails.

I have two questions.

  1. Following the documentation to install Discourse, it pulled the development version ( 3.5.0.beta7-dev). I don’t want to run this version. How do I make it pull the latest release version instead?

  2. While testing the email delivery, I realized that clicking on that link leads to a distorted URL for the site. My site runs on a FQDN that is discourse.my.domain. However, when I click on the link to test the email, it leads to http://community.kictanet.or.ke7d/admin/email/server-settings - there is a “7d” appended to the end of the FQDN. If I remove the “7d”, the URL loads fine. Where is the “7d” coming from, and how do I ensure it doesn’t happen?

Thank you.

2 Likes

That is the latest version :slightly_smiling_face: . It’s on the beta branch.
For more info about branches, see:

1 Like

Thank you very much for the fast response.
I have looked at my containers/app.yml and I hadn’t uncommented the version line:

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

Should I therefore be contented that the installed version is good enough for production use?

Yes, it is. This forum (Discourse Meta) also uses that version. The default and recommended is to use the tests-passed branch.

1 Like

Thank you very much.

Any insight into where that “7d” being appended to the FDQN is coming from?

No, sorry. I ave no idea why that’s happening. Do you have a CDN or reverse proxy by any chance?

I don’t have a CDN. However, I run my Discourse instance behind Nginx with a very simple config:

server {
        listen 443 ssl http2;
        server_name discourse.FQDN;

        # SSL parameters
        ssl_certificate /etc/letsencrypt/live/discourse.FQDN/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/discourse.FQDN/privkey.pem;
        ssl_trusted_certificate /etc/letsencrypt/live/discourse.FQDN/chain.pem;
        include snippets/ssl.conf;
        include snippets/letsencrypt.conf;


        # Tell browsers the site should only be accessed via https.
        add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
        add_header Content-Security-Policy upgrade-insecure-requests;

        # log files
        access_log /var/log/nginx/discourse.FQDN-access.log;
        error_log /var/log/nginx/discourse.FQDN-error.log;


        location = /favicon.ico {
        log_not_found off;
        access_log off;
        }

        location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
        }

        client_max_body_size 10m;
        proxy_read_timeout 300;

        location / {
        proxy_pass http://127.0.0.1:8008;
        proxy_http_version  1.1;
        proxy_cache_bypass  $http_upgrade;
        proxy_set_header Host              $host;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-Host  $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Port  $server_port;
        }

        location @rewrites {
                add_header X-Cache-Engine "No cache";
                rewrite ^ /index.php last;
        }

}
1 Like

This looks like a mistake in the admin quick start guide:

I’ve submitted a fix here:

If you want, you could edit the topic and fix the link in the topic on your forum. Or you can wait for the pull request to be merged, then update your forum and reseed that topic at the admin > site texts page using the “replace text …” button on the right.

5 Likes

Thank you for finding the source of the problem.
I am only on my 2nd day with the Discourse installation so I am even yet to figure out how to find a topic and edit it :slight_smile:
A lof of reading yet to be done towards running/administering own self-hosted instance.

1 Like

Thank you for bringing this to my attention. Welcome to Meta :wave:

You can edit it using the pencil in the post menu:


The guide should be in your staff category. Maybe you also have the “Getting Started” link at the top next to the logo. I think that one takes you to the topic too.

2 Likes

Thank you. I approached it from “Getting Started” link and edited it.

1 Like

thank you for the report @odhiambo, and welcome to Discourse Meta - great first post :smiley:
Good luck with your new forum!

thanks for the fix Moin. the doc is updated now :slight_smile:

1 Like

I’m not sure exactly where it’s coming from. But it disappeared for me by itself. I did un comment all my settings in my emv yaml, dunno if that has something to do with it. But that fixed a different error for me

I think I know where it’s coming from. :raised_hand: :slight_smile:

2 Likes

That would do it lollll.

Sudden irony just filled me, were chatting on a forum about fixing said forum :rofl:

@ryan_olsen From /about :wink:

About

A place for the Discourse community to meet, ask questions, provide support to one other, and share much-appreciated feedback.


Hi @odhiambo , you can read the guides in Documentation > Using Discourse and Documentation > Site Management. They’re really helpful to learn more about Discourse’s features!

1 Like