mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Setting CloudPanel Custom Domain breaks Custom Domain #378
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MildlyInterested on 7/6/2023
CloudPanel version(s) affected
2.3.1
Description
I noticed while accessing cloudpanel a warning about an outdated SSL certificicate. Seeing no obvious way to manually refresh that I naviated to Admin area --> Settings and clicked save on the
Cloudpanel Custom Domain. The website immediately stopped responding, sites managed through cloudpanel continued to work fine. This was after updating from the previous version to 2.3.1 so it might have to do something with it.How to reproduce
Possible Solution
No response
Additional Context
Looking at
/etc/nginx/sites-enabled/it seems like as soon as I click save thecustom-domain.confandcustom-domain.crt,custom-domain.keyin/etc/nginx/ssl-certificates/get deleted but not recreated. Copying it back in does not fix the issue because nginx won't load with that config since the config expects a SSL cert to be existing which at that point they don't.... Manually creating SSL certs, copying back the config and reloading NGINX fixes the issue. Although I'm not sure if the SSL certs will get refreshed by cloudpanel.