Docker image defaults to loading ssl cert/key from environment variables
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 48/100
- Issue 類型
- 文件
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- docker, javascript
- 領域
- devops, documentation
研究方向
從 README 的 Docker 部分開始,並將其與 docker-image/src/Dockerfile 第 23–24 行中的環境變數定義進行比較。記錄這些變數由映像檔設定,且需要使用 CLI flags 而不是設定檔中的值來覆寫它們。沒有提到測試;完成的標準是 Docker 設定和優先順序行為對讀者來說清楚明確。
由索引模型根據 Issue 內容生成。
描述
For configuration of n-s-s, the readme file specifies
CLI flags take precedence over Environment variables, which take precedence over entries in the config file.
I see that the Dockerfile uses environment variables to specify the ssl cert and key:
https://github.com/solid/node-solid-server/blob/ca5bffbf2299a334eb6c5b7d26b37458df8f6624/docker-image/src/Dockerfile#L23-L24
This caused me some confusion when I first tried to configure the cert and key using the config file. It continued to use the values from the env variables over my config file. I was able to override this with a flag.
I think it'd be a good idea to indicate in the docker section of the readme that these environment variables are set, and that if you want to override them you must use the flag rather than the config file.
I initially had a large draft ticket written for this problem, until I found the Dockerfile environment variable and looked at the documentation again and found the section about precedence. I thought I was going crazy because it was loading some values from the config file but not others. I wonder if it could be made clearer, either in debug output, or the documentation about this precedence (for example during debug the server could output something like 'using config setting x from [cli|env|config]'
Thanks!
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodeSolidServer/node-solid-server 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
nodeSolidServer/node-solid-server#1848 · 2 則留言 · 1 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 65/100
nodeSolidServer/node-solid-server#1841 · 2 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
nodeSolidServer/node-solid-server#1147 ·
-
難度 4/5 3-5 天 新手友好度 35/100
nodeSolidServer/node-solid-server#1867 ·
-
難度 5/5 一週以上 新手友好度 45/100
nodeSolidServer/node-solid-server#1853 ·
查看 nodeSolidServer/node-solid-server 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
Request: SumUp 未關閉new icon permissions in review
難度 2/5 1-3 小時 新手友好度 72/100
simple-icons/simple-icons#15027 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
TheOdinProject/curriculum#31408 ·
-
archived coursework help wanted scope: curriculum
難度 2/5 1-3 小時 新手友好度 88/100
freeCodeCamp/freeCodeCamp#70260 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 86/100