Could I get some help from all you pros? Thank you in advance!
I set up Discourse on my local area network, and I’m accessing it via IP address since I don’t have a domain name. After a lot of messing around… I finally got it installed, but when I visit the address it just shows the default Nginx page. Did I misconfigure something somewhere? Or is a domain name required? I tested modifying my hosts file to use a domain name, but it still doesn’t work, and I can’t get a Telnet connection to either port 80 or 443.
You can try binding a domain name, then point it to the instance by modifying your local hosts file. I’m not sure if Discourse supports direct access via IP.
Access via IP works fine and the deployment has completed successfully, but using a domain name is still preferable. After checking logs, I found that the previous issue was caused by the HTTPS-related SSL certificate not working. The automatically validated certificate was found to have a file size of 0KB, because ports 80 and 443 on my public IP are already being used by other systems, so I have to use alternative ports for this instance. I tried changing port 80 to 1180 for domain access; after disabling HTTPS, I can access the site normally, but all uploaded images, the built-in logo, and emoji images in Discourse cannot be displayed, because all of their URLs point to port 80 of the domain.
How do I set up IP access? I installed it on my local virtual machine and have already configured the IP, but I still cannot access it. Could you tell me what method you use?
Open the main configuration file with vim containers/app.yml, add - "templates/web.china.template.yml" after - "templates/web.template.yml" in the templates section