question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow a custom path for Ghost admin

See original GitHub issue

I’m running ghost:2.1.2-alpine and I’m trying to host the /ghost panel under a separate domain. I’m doing this because I have multiple ghost installations and I want one Google-based OAuth for all installations.

Now, I’m supplying an environment variable to the docker continer in the form of:

admin__url: "https://ghost.domain.mine/xyz/"

But despite that the configuration is ignored, and when the API call to /ghost/api/v0.1/configuration/ is made it is made for:

https://ghost.domain.mine/ghost/api/v0.1/configuration/

Which suggests to me that the xyz/ sub-path of the admin__url argument is ignored. Why is this?

My proxy config:

   location /xyz {
       rewrite /xyz/(.*) /ghost/$1 break;
       proxy_pass http://127.0.0.1:8081/ghost;
       proxy_redirect https://ghost.domain.mine/ghost/ /xyz/;
       proxy_set_header Host $host;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Real-IP $remote_addr;
   }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
jakubgscommented, Sep 17, 2018

I see, that is a real pain…

That being said, it is something we would be happy to accept a PR for slightly_smiling_face

I wish I had the time to help you with this, but as it stands I am a single devops for a whole company. Maybe in the future. for now I’ll probably implement a hack around this using domains. Thanks for explaining this.

1reaction
kevinansfieldcommented, Sep 14, 2018

🤦‍♂️ my bad, got confused by how the table is formatted

Read more comments on GitHub >

github_iconTop Results From Across the Web

URLs & Dynamic Routing - Ghost Themes
Template routes allow you to map individual URLs to specific template files ... Custom routes are handy for creating static pages outside of...
Read more >
Change & Hide Paths in Hide My WP Ghost
To do this with Hide My WP Ghost, just change the name for the wp-admin with your custom name in Hide My WP...
Read more >
How do I Re-route Ghost Blog Admin URL without modifying ...
My question is — what is the best way to achieve a redirect of the admin URL to a different Domain / protocol...
Read more >
Using Ghost as a Headless CMS | Draft.dev
The Ghost admin provides settings that you can adjust as you like. ... its flexible architecture allows you to use a custom frontend....
Read more >
Admin takeover of an unmanaged directory - Azure AD
During the process of admin takeover, you can prove ownership as described in Add a custom domain name to Azure AD.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found