xinxi_wang
(Xinxi Wang)
September 18, 2020, 5:44pm
1
This is a fresh installation. However. The login page doesn’t show.
https://forum.coinut.com/login
A random page that doesn’t exist like https://forum.coinut.com/dflkadjf has something.
I tried to reinstall but the result is the same.
Can someone help?
2 Likes
TOMAR
(TOM)
September 18, 2020, 5:52pm
2
What type of server is Dedicated or VPS installed on?
1 Like
xinxi_wang
(Xinxi Wang)
September 18, 2020, 5:55pm
3
It’s a digital ocean Ubuntu 18.04 LTS instance.
I installed by checking out github to /var/discourse and setting up.
2 Likes
TOMAR
(TOM)
September 18, 2020, 6:00pm
4
You looked at the main page of your site and found that you did not complete the installation steps yet! You must add the name of the manager and password and complete the registration
1 Like
TOMAR
(TOM)
September 18, 2020, 6:04pm
5
You successfully added administrator information: Check your email
Admin
123456
Change the password if you enter it for your site
1 Like
IAmGav
(Gavin Perch)
September 18, 2020, 6:09pm
6
you did not enter all the info that was required when you installed it.
you will now need to edit the app.yml file and rebuild before you can use it
1 Like
xinxi_wang
(Xinxi Wang)
September 18, 2020, 6:11pm
7
2 Likes
IAmGav
(Gavin Perch)
September 18, 2020, 6:13pm
8
follow this link to add an admin account to your installation
So you want to create/grant Admin privileges or reset user password from console? Great, let’s get started!
Access Console
Connect to your Droplet via SSH, or use Putty on Windows:
ssh root@192.168.1.1
Replace 192.168.1.1 with the IP address of your Droplet.
Switch to your Discourse folder:
cd /var/discourse
Enter the container:
./launcher enter app
Create New Account with Admin Privileges
Run this command from console:
rake admin:create
instructions for multisite If you have a multisit…
1 Like
xinxi_wang
(Xinxi Wang)
September 18, 2020, 6:16pm
9
Followed the steps and created the account. Now the home page is still blank.
1 Like
IAmGav
(Gavin Perch)
September 18, 2020, 6:18pm
10
4 Likes
xinxi_wang
(Xinxi Wang)
September 18, 2020, 6:28pm
11
Nothing special was configured. But the docker is behind nginx. I tried to use ssh -D8080 server_address to open a proxy and used a browser to directly visit the docker instance to by pass nginx. It’s the same result.
1 Like
xinxi_wang
(Xinxi Wang)
September 18, 2020, 6:46pm
12
It seems to be something related to our nginx’s pagespeed module.
1 Like
xinxi_wang
(Xinxi Wang)
September 18, 2020, 6:58pm
13
I followed Discourse refused to load with CSP policy error after rebuild and disabled CSP.
Now there are less errors. But the home page is still blank. And the errors are like these:
2 Likes
xinxi_wang
(Xinxi Wang)
September 18, 2020, 7:53pm
14
The reason was that https://forum.coinut.com/assets/ember_jquery-d0ba1603b80181031290e4bd850857d41d63bc4a081d7b4bf16d4e1a4e355a22.js was truncated by nginx. I turned off pagespeed and purged cache on cloudflare. Now it works.
1 Like
Canapin
(Coin-coin le Canapin)
September 18, 2020, 9:45pm
15
Be aware that Cloudflare isn’t recommended with Discourse:
1 Like
Stephen
(Stephen)
September 19, 2020, 3:55pm
16
If you put the site behind nginx you weren’t following the standard install guide. Pagespeed isn’t supported.
Nothing should be allowed to manipulate the page content. Discourse is a JavaScript application, not a website. It isn’t compatible with third party optimizers such as pagespeed or CloudFlare’s Rocket Loader.
xinxi_wang
(Xinxi Wang)
September 19, 2020, 4:38pm
17
That’s an interesting concept. But as long as nginx or pagespeed or CloudFlare do not violate the HTTP protocol, they should work well together?
Stephen
(Stephen)
September 19, 2020, 4:40pm
18
Discourse already minifies the JS and optimizes the page. Other attempts to do so aren’t supported or compatible.
Once the JavaScript app has loaded, the data transfer is minimal. Pagespeed can’t help you there.
xinxi_wang
(Xinxi Wang)
September 19, 2020, 4:42pm
19
That sounds great. How about CloudFlare as a CDN? Wouldn’t that help to lower the response time and save traffic?
Stephen
(Stephen)
September 19, 2020, 4:43pm
20
S3 will save you traffic if paired with a CDN.
Inserting Cloudflare in the route between client and server increases the network hops and slows down request/response times.
Remember that the payload between client and server is nearly never something that can be cached.