Coder Social home page Coder Social logo

Comments (9)

c3b-watzefak avatar c3b-watzefak commented on May 24, 2024 1

Okay, if you want to run your docker image behind a nginx proxy, you will have to proxy both protocols, http like https. I don't know why but that workaroud keeps on running on c3b.info

I close that issue now

from docker-ghost.

aholbreich avatar aholbreich commented on May 24, 2024

hi
i can try, but need more details.
Your link is brocken so i cannot see any details. Which SSL configs you mean? Provide whole configuration please.

from docker-ghost.

c3b-watzefak avatar c3b-watzefak commented on May 24, 2024

These are the configs:

https://gist.github.com/c3b-watzefak/aad75fb26b2570f26cc6319daaabb7a6

This is the command I used to get ghost running:

docker run -d --name c3b-ghost-prod -h c3b.info --env-file /opt/docker.conf/c3b.info/ghost.conf/ghost -p 127.0.0.1:2368:2368 -v /opt/docker.conf/c3b.info/ghost.store:/var/lib/ghost --restart=always gold/ghost npm start --production

from docker-ghost.

c3b-watzefak avatar c3b-watzefak commented on May 24, 2024

By the way: I cross checked just now to run the official ghost docker. It is working on dev-mode with the configuration above...

from docker-ghost.

aholbreich avatar aholbreich commented on May 24, 2024

I' will try to build similar setup.

1)But could you provide also env file (/opt/docker.conf/c3b.info/ghost.conf/ghost). that is missing part.

2)Can you check the dev mode start with gold/ghost?
Official image developer mode do not enable SSL on ghost admin page, so i expect similar behavior with gold/ghost.

In production SSL is enabled at least for admin pages. So the upstream configuration seem not to match...

  1. Are you able to access blog directly on exposed ports bypassing nginx? So please make sure container is running and working as expected without nginx first. So we can limit the problem to ghost pasrt or to nginx part.

from docker-ghost.

c3b-watzefak avatar c3b-watzefak commented on May 24, 2024
  1. /opt/docker.conf/c3b.info/ghost.conf/ghost
# Ghost environment example
# Place in /etc/default/ghost

GHOST_URL=http://c3b.info
MAIL_FROM='"Webmaster" <[email protected]>'
MAIL_HOST=c3b.info
PROD_FORCE_ADMIN_SSL=false

2)Yes, like u said, front page loaded, none of the links and admin page is working

  1. I am able to reach the blog without nginx on its port. but not on ssl

from docker-ghost.

aholbreich avatar aholbreich commented on May 24, 2024
  1. Yes this is Ok because of PROD_FORCE_ADMIN_SSL=false. But do you have any problems whith ghost (without SSL) if you use it directly without nginx.?

It seems like there is a bug in nginx config that do not consider some redirection turns to cycle... Have you looked in your nginx (error) log?

from docker-ghost.

c3b-watzefak avatar c3b-watzefak commented on May 24, 2024

I think I got it. In the nginx configs for the proxy was a autoforward to https from http. I have to proxy http aswell as https then it runs good. Testing for the moment...

from docker-ghost.

aholbreich avatar aholbreich commented on May 24, 2024

I plan to test it in the future and add some documentation on it.
Currently i run different setup.
Thank you for the feedback anyway.

from docker-ghost.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.