고스트 이메일 인증문제
ㅇ 고스트 배포 후에 특정 브라우저로만 들어가지는 이슈 발생
고스트 5.x 버전부터는 이메일 매직링크로 들어가는 방식으로 보안이 강화됐단다.
그래서 이메일 인증 설정을 추가 해줘야 한다.
volumes:
- /docker/ghost/content:/var/lib/ghost/content
- /docker/ghost/config.production.json:/custom/config.production.json
command: >
bash -c "cp /custom/config.production.json /var/lib/ghost/config.production.json && docker-entrypoint.sh node current/index.js"
나는 이런식으로 config.production.json 파일을 미리 작성해서 고스트 도커에 넣는 방식으로 해결했다. json
"url": "https://mysite",
"server": {
"port": 2368,
"host": "0.0.0.0"
},
"mail": {
"transport": "SMTP",
"options": {
"service": "Gmail",
"auth": {
"user": "smileconrad@gmail.com",
"pass": "mzts uxxx xxxx xxxx" # my password
}
}
}
,
"logging": {
"transports": [
"file",
"stdout"
]
},
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}
이런식으로 미리 넣어놓고 재기동 하니 다른 브라우저 에서도 인증메일 화면으로 넘어간다.
- 도커스웜으로 고스트 배포합니다.
- traefik을 이용한 리버스 프록시, 보안인증까지 진행합니다.
배포는 매니저에서, json파일은 워커노드에 있어야 합니다. - 상세한 방법을 알고 싶으면 댓글로 문의 바랍니다.