For my configuration, where the forum isn’t accessible from the Internet, but is from my own computer), I ignored the warning.
However, I needed a domain name to be resolved from my Windows browser, so I needed to do these steps:
-
Redirect an arbitrary domain name (
d.comhere) to my machine by editingc:/windows/system32/drivers/etc/hosts. I added these lines:127.0.0.1 d.com 255.255.255.255 broadcasthost ::1 localhost d.com -
Create a new file:
C:\Users\yourWindowsUserName\.wslconfigand write this inside:[wsl2] localhostForwarding=true -
Reboot WSL:
wsl --shutdown(Powershell)
Or
wsl.exe --shutdown(Ubuntu) -
In Ubuntu, start Docker (it doesn’t start automatically):
service docker start -
Comment the SSL lines in
/var/discourse/container/app.ymlsuch as:# - "templates/web.ssl.template.yml" # - "templates/web.letsencrypt.ssl.template.yml" -
Rebuild