Example Nginx config for Ghost 1.x?


I roll my own Nginx (for Brotli support etc) and as a result, ghost install doesn’t detect that I have Nginx installed (it seems to check for the packaged version).

Although I’ve had success using a modified version of my old Nginx config from Ghost 0.11.x, I’m curious as to what config would be installed for me by ghost-cli, if the check had succeeded (and I’d opted to have ghost-cli setup Nginx for me).

Could someone post an example Nginx config as created by ghost-cli please?

(From screenshots of other people’s installation steps, I think the config gets created at [ghost-install-folder]/ghost/system/files/[blog-domain].conf, but I checked that folder and I only have a systemd unit file in there.)


The templates used by Ghost-CLI can be found in the repo: https://github.com/TryGhost/Ghost-CLI/tree/master/extensions/nginx/templates

I’ve updated our knowledgebase to include this link.

There’s also an open issue for the custom nginx detection: https://github.com/TryGhost/Ghost-CLI/issues/310.


Great! Thanks very much for the quick and thorough response. :smiley:

closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.