Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using ghost-cli install in a headless manner, it will not register ssl cert for the admin domain. #1918

Open
3 of 4 tasks
akerasi opened this issue Dec 30, 2024 · 0 comments

Comments

@akerasi
Copy link

akerasi commented Dec 30, 2024

Summary

I'm trying to script an automated (ansible-based) install setup for my personal use. When doing so, even when admin-url is properly set to https://admin.mydomain.com and DNS is correctly configured (pointing mydomain.com and admin.mydomain.com to the IP), although it sets up https properly for the main domain, it neglects to do so for the admin domain.

Steps to Reproduce

ghost install --url 'https://mydomain.com' --admin-url 'https://admin.mydomain.com' --ip '0.0.0.0' --sslemail '[email protected]' --db --mysql --dbhost '172.16.1.23' --dbuser 'username' --dbpass 'pass' --dbname 'ghost' --no-setup-linux-user --no-prompt --enable

Linux user is set otherwise in my script, exact urls obviously replaced with placeholders (though I do use the 0.0.0.0 line).

Expected results: it installs and everything works

Actual results: no SSL for admin domain, meaning I can't set it up

Log file

All errors end with "Additional log info available in: [filepath]".

No error, so no logfile

Use the command cat [filepath] to read the log, then copy & paste the contents here:

Read above

Paste log file here

Technical details

This is automatically output by Ghost-CLI if an error occurs, please copy & paste:

  • OS: Ubuntu 24.04
  • Node Version: 18.19.1
  • Ghost-CLI Version: 1.26.1
  • Environment: AMD64
  • Command: ghost install

Bug submission checklist

Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.

  • Tried to find help in the forum & docs
  • Checked for existing issues
  • Attached log file (no idea where it is if extant)
  • Provided technical details incl. operating system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant