docs: Docker 環境の HTTPS アクセス手順を README に追記#6944
Open
ttokoro20240902 wants to merge 2 commits into
Open
Conversation
`docker compose up -d` 起動後のアクセス URL が README で `http://localhost:8080` のみ案内されていたが、dev/prod のセッションクッキーは `cookie_samesite: none`(+ `cookie_secure: auto`)で発行されるため、 HTTP 接続ではブラウザがクッキーを破棄しログインできない。 実際に必要な HTTPS(`https://127.0.0.1:4430/`)でのアクセスと、 自己署名証明書による「保護されていない通信」警告を mkcert で解消する手順を 日本語インストール節に追記し、英語版 Quick Start の誤った案内も訂正する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughREADME.md に Docker 環境の HTTPS アクセス先、HTTP ログイン制約、自己署名証明書の扱い、mkcert による証明書差し替え手順を日本語・英語で追記しました。 ChangesDocker HTTPS ドキュメント
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
WSL 内で mkcert -install しても Windows 側ブラウザ(Chrome/Edge は Windows の証明書ストアを参照)には反映されないため、rootCA を Windows へ 取り込む手順を mkcert 節に補足する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
詳細は doc4 に記載すべき内容かなと思います。 docker-compose.yml の |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要(Overview・Refs Issue)
docker compose ... up -dで起動した開発環境のアクセス方法について、README がhttp://localhost:8080のみを案内していますが、この URL ではログインできません。dev/prod 環境のセッションクッキーは
app/config/eccube/packages/framework.yamlでcookie_samesite: none(+cookie_secure: auto)で発行されます。SameSite=Noneのクッキーはブラウザ仕様上Secure属性(=HTTPS 接続)が必須で、HTTP 接続だとクッキーが破棄されるため、ログイン・カートなどセッションを使う操作が成立しません。実際に必要な HTTPS(
https://127.0.0.1:4430/= docker-compose.yml の4430:443)でのアクセス方法と、自己署名証明書(Apache snakeoil)による「保護されていない通信」警告の解消手順を追記します。方針(Policy)
# Access http://localhost:8080を HTTPS 案内へ訂正。実装に関する補足(Appendix)
a2enmod ssl/default-ssl.conf/EXPOSE 443)は Dockerfile に以前から存在します。今回はコードは変えず、README の案内を実態に合わせるものです。テスト(Test)
ドキュメントのみの変更のため、テスト・静的解析の対象はありません。
マイナーバージョン互換性保持のための制限事項チェックリスト
🤖 Generated with Claude Code
Summary by CodeRabbit
mkcertでローカル信頼証明書を発行してコンテナへ反映する手順を追記しました。