My site certificate only supports non-www addresses. So, when we try to access an image uploaded to the site we are getting a bad certificate warning because there is a ‘www’ in the address. Is there a solution for this?
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !firstname.lastname@example.org.
What value did you put in the line below? It should be beehaw.org, without www.
It is beehaw.org.
Hmm, then did you configure www.beehaw.org in some other place? Because Lemmy certainly doesnt add that.
Here are the server blocks of my nginx conf file:
Its possible that certbot messed up something in your nginx config, but i dont see how that would affect the html sent by the server. Did you previously have www.beehaw.org set in docker-compose.yml? Maybe its still using the old setting.
Otherwise i cant think of anything.
I may have. I don’t know how it could retain the old setting. Strange. Thanks for helping.
You need to run
docker-compose upto reload the settings. With
docker-compose restart, it keeps using the old settings.
I think I may have found something. Instead of using ‘restart’ with nginx shouldn’t I be using ‘reload’? See: https://linuxize.com/post/start-stop-restart-nginx/
I’ve never used docker-compose restart. I always use docker-compose up.