直接訪問ghost可以,但是nginx沒有代理
其他配置與同學們的一樣
這是 ghost/config.json
{
????"url":?"http://www.justginger.top:2368/",
????"server":?{
????????"port":?2368,
????????"host":?"0.0.0.0"
????},
????"database":?{
????????"client":?"mysql",
????????"connection":?{
????????????"host":?"db",
????????????"user":?"ghost",
????????????"password":?"ghost",
????????????"database":?"ghost",
????????????"port":?3306,
????????????"charset":?"utf8"
????????}
????},
????"mail":?{
????????"transport":?"Direct"
????},
????"logging":?{
????????"transports":?[
????????????"file",
????????????"stdout"
????????]
????},
????"process":?"systemd",
????"paths":?{
????????"contentPath":?"/var/lib/ghost/content"
????}
}這是 nginx.conf
worker_processes?auto;
events?{
????????worker_connections?1024;
}
http?{
????????server?{
????????????????listen?80;
????????????????location?/?{
????????????????????????proxy_pass?http://ghost-app:2638;
????????????????}
????????}
}
2018-06-17
補充公網環境