Allow a custom path for Ghost admin
See original GitHub issueI’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:
- Created 5 years ago
- Comments:13 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see, that is a real pain…
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.
🤦♂️ my bad, got confused by how the table is formatted