File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,28 @@ upstream go_capture {
3
3
}
4
4
5
5
server {
6
-
7
6
listen 80 ;
7
+ server_name go-capture-api.code-apprentice.com;
8
+ return 301 https://$server_name$request_uri ;
9
+ }
10
+
11
+ server {
12
+ listen 443 ssl http2;
8
13
9
14
server_name go-capture-api.code-apprentice.com;
10
15
client_max_body_size 0 ;
11
16
17
+ ssl_certificate /etc/letsencrypt/live/code-apprentice.com-0001/fullchain.pem;
18
+ ssl_certificate_key /etc/letsencrypt/live/code-apprentice.com-0001/privkey.pem;
19
+ ssl_session_cache shared:SSL:10m;
20
+ ssl_protocols TLSv1.2 TLSv1.3;
21
+ ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384" ;
22
+ ssl_prefer_server_ciphers on ;
23
+
12
24
location / {
13
25
proxy_pass http://go_capture;
14
26
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
15
27
proxy_set_header Host $host ;
16
28
proxy_redirect off ;
17
29
}
18
-
19
30
}
You can’t perform that action at this time.
0 commit comments