אינסטנס Discourse עצמאי מוסיף "7d" ל-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 לייקים

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

לייק 1

תודה רבה על התגובה המהירה.
בדקתי את הקבצים שלי containers/app.yml ולא ביטלתי את ההערה בשורת הגרסה:

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

האם עלי להיות מרוצה מכך שהגרסה המותקנת טובה מספיק לשימוש בייצור?

כן, זה כך. פורום זה (Discourse Meta) משתמש גם בגרסה זו. ברירת המחדל והמומלץ הוא להשתמש בענף tests-passed.

לייק 1

תודה רבה.

האם יש למישהו מושג מאיפה מגיע ה-“7d” שמצורף ל-FDQN?

לא, מצטער. אין לי מושג למה זה קורה. האם יש לך במקרה CDN או proxy הפוך?

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

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 לייקים

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

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 לייקים

תודה. ניגשתי אליו דרך הקישור “Getting Started” ועשיתי בו שינויים.

לייק 1

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

אני לא בטוח בדיוק מאיפה זה מגיע. אבל זה נעלם לי מעצמו. אני כן הסרתי את ההערות מכל ההגדרות שלי ב-emv yaml שלי, לא יודע אם לזה יש קשר.

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

2 לייקים

זה יעשה את זה חחחח

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

נושא זה נסגר אוטומטית לאחר 23 שעות. לא ניתן להגיב יותר.