直接訪問(wèn)ghost可以,但是nginx沒(méi)有代理
其他配置與同學(xué)們的一樣
這是 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
補(bǔ)充公網(wǎng)環(huán)境