Hey future self... just a quick note, in case you need to access the classic UI on your CookiePlone-built site.
As you know, cookieplone is optimised for volto. Typically you might go to port 8080 to get to the classic UI. This isn't possible to do with a cookieplone-based deployment, even if you use an SSH tunnel.
Don't worry though. They have a solution for this use case.
It is possible to access the classic UI when using Cookieplone
by visiting /ClassicUI
Currently, I am struggling to test the saml2 pas plugin created by @maethu and would like to use the ClassicUI in my IDP settings. Using https and port 8080 does not fly and since azure wants https locations configured, I cannot use port 8080.
There was no nginx involved in my setup. I used the "out of the box" Traefik configurations and deployed using the default ansible setup found under the "devops" folder.
A good night sleep does wonders.
I can now access the backend through https by calling https://myhost.example.com/Plone
The Zope management interface is also available, but has no style markup.
I am running this setup as a test (in Ubuntu 24.04 LTS) and these are the steps to reproduce my setup:
Install Nginx: sudo apt install nginx
pipx run cookieplone project
cd [newproject] and execute "make install"
cd frontend and execute "make build"
copy certificate to /etc/ssl/certs and key file to /etc/ssl/private
create a site in Nginx: vi /etc/nginx/sites-available/[mysite]
paste the configuration below into the Nginx [mysite] file
cd into /etc/nginx/sites-enabled
create a symbolic link to /etc/nginx/sites-avilable/[mysite], "sudo ln -s /etc/nginx/sites-available/[mysite] [mysite]"
sudo nginx
cd [newproject]/frontend and execute "pnpm start:prod"
in a new terminal window cd into [newproject]/backend and execute "make start"
When it comes to access the ZMI at the root it becomes trickier when you have the full Traefic setup from the devops templates in cookieplone.
While it is enough to enter the ZMI at the Plone level using ./ClassicUI/manageyou need to use./ClassicUI/aq_parent/manage_mainto get to the ZMI root. (e.g. to change the admin credentials or remove a temporary emergency user).
While it is enough to get to the ZMI at the Plone level to use the admin login credentials you use for Plone/Volto you may be challenged with a http basic auth challenge at the traefik level (not distinguishable from the classic ZMI login, you may know).
If you struggle at the ZMI root, check this:
Here comes the trick: Depending on the version of your cookieplone template, you are challenged with a http basic auth login at the treafik level, that was defined in the docker-compose.yml in the project root and then propagated during the devops/Makefile commands to the devops folder.
I guess this was changed, but I need to lookup this again. Check the cookieplone-templates changelog.