質問編集履歴

4

誤字の修正

2022/05/06 13:20

投稿

rokutimpo
rokutimpo

スコア12

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
  │   └── django のプロジェクトディレクトリ
31
31
  └── static(静的ファイルを集めています)
32
32
 
33
- .nginx/certs ディレクトリに certbot で取得した証明書をコピーしています。
33
+ ./nginx/certs ディレクトリに certbot で取得した証明書をコピーしています。
34
34
 
35
35
 
36
36
 

3

誤字の修正

2022/05/06 13:19

投稿

rokutimpo
rokutimpo

スコア12

test CHANGED
File without changes
test CHANGED
@@ -28,8 +28,7 @@
28
28
  │   └── init.sql
29
29
  ├── src
30
30
  │   └── django のプロジェクトディレクトリ
31
- └── static
31
+ └── static(静的ファイルを集めています)
32
-    └── 静的ファイル
33
32
 
34
33
  .nginx/certs ディレクトリに certbot で取得した証明書をコピーしています。
35
34
 

2

個人情報を記載してしまっていたため修正。

2022/05/06 13:17

投稿

rokutimpo
rokutimpo

スコア12

test CHANGED
File without changes
test CHANGED
@@ -115,7 +115,7 @@
115
115
  ```bash
116
116
  # 実行時の日付は日本時間で 2022 年 05 月 06 日です。
117
117
  # input 5
118
- sudo openssl x509 -in /etc/letsencrypt/live/canmigaki.com/fullchain.pem -noout -dates
118
+ sudo openssl x509 -in /etc/letsencrypt/live/ドメイン名/fullchain.pem -noout -dates
119
119
 
120
120
  # output 5
121
121
  notBefore=May 6 04:57:17 2022 GMT

1

誤字の修正を行いました。

2022/05/06 13:15

投稿

rokutimpo
rokutimpo

スコア12

test CHANGED
File without changes
test CHANGED
@@ -49,7 +49,7 @@
49
49
 
50
50
 
51
51
  # 発生している問題(ホスト OS 側のシェルにて確認)
52
- 以下3点のコマンド入力を行い、確認作業を行いました。
52
+ 以下 6 点のコマンド入力を行い、確認作業を行いました。
53
53
  全てホスト OS 側のシェルで実行しています。
54
54
  ```bash
55
55
  # input 1
@@ -78,7 +78,7 @@
78
78
  # output 2
79
79
  curl: (28) Failed to connect to ドメイン名 port 443: Connection timed out
80
80
  ```
81
- ↑ タイムアウトになってしま
81
+ ↑ タイムアウトになってしまいます。
82
82
  ```bash
83
83
  # input 3
84
84
  sudo lsof -i -P
@@ -93,7 +93,7 @@
93
93
  docker-pr 74880 root 4u IPv6 540036 0t0 TCP *:80 (LISTEN)
94
94
  ~~~~~~
95
95
  ```
96
- ↑ 443 ポートは listen になっています
96
+ ↑ 443 ポートは listen になっています
97
97
  ```bash
98
98
  # input 4
99
99
  sudo docker logs NGINXのコンテナ名
@@ -129,10 +129,10 @@
129
129
  ```bash
130
130
  # docker-compose.yml で django コンテナの /tmp/mylog.log にログ出力するようにしています。
131
131
 
132
- # input 5
132
+ # input 6
133
133
  sudo docker-compose exec django cat /tmp/mylog.log
134
134
 
135
- # output 5
135
+ # output 6
136
136
  *** Starting uWSGI 2.0.20 (64bit) on [Fri May 6 11:34:57 2022] ***
137
137
  compiled with version: 10.2.1 20210110 on 06 May 2022 08:42:41
138
138
  os: Linux-5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020
@@ -159,7 +159,13 @@
159
159
 
160
160
 
161
161
  # 該当のソースコード
162
-
162
+ 以下3点を記載します。
163
+
164
+ ①./docker-compose.yml
165
+ ②./nginx/nginx.conf
166
+ ③./nginx/uwsgi_params
167
+
168
+ ### ①./docker-compose.yml
163
169
  ```docker-compose.yml
164
170
  # ./docker-compose.yml
165
171
 
@@ -212,6 +218,7 @@
212
218
  - mysql
213
219
 
214
220
  ```
221
+ ### ②./nginx/nginx.conf
215
222
  ``` nginx.conf
216
223
  # ./nginx/nginx.conf
217
224
 
@@ -260,6 +267,7 @@
260
267
  server_tokens off;
261
268
  }
262
269
  ```
270
+ ### ③./nginx/uwsgi_params
263
271
  ```uwsgi_params
264
272
  # ./nginx/uwsgi_params
265
273
 
@@ -292,5 +300,9 @@
292
300
 
293
301
  ### さいごに
294
302
  拙い質問文となってしまい恐縮ですが、どなたか知恵をお貸し頂けますと幸甚です。
303
+
304
+ 構成自体を変えた方がいい、このコンテナ使った方がいい or やめた方がいい 等
305
+ どんな意見でもご教示頂けると、とても嬉しいです。
306
+
295
307
  どうぞ宜しくお願い致します。
296
308