Commit 1b12350
feat: use Go's default values for TLS server (#13641)
- It's pointless to set defaults when those are _continously_ being updated by Go to incorporate newer values (e.g. PQ in the last few releases).
- It's pointless to figure out a order preference, these are ignored by Go for their own internal preference.
- Do less and trust [Go's cryptography principles](https://golang.org/design/cryptography-principles) to keep this safe and modern.
Documentation PR: forgejo/docs!2089
## Test
1. Obtain a certificate via ACME (self-signed is possible, can be generated via https://stackoverflow.com/a/41366949, requires setting some valid hostname).
2. Set `[server].KEY_FILE` and `[server].CERT_FILE` to the certificate.
3. Set `[server].PROTOCOL = https`.
4. Run forgejo.
5. Verify you can connect to Forgejo over HTTPS.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13641
Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org>
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>1 parent 5b83822 commit 1b12350
2 files changed
Lines changed: 8 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 102 | | |
132 | 103 | | |
133 | 104 | | |
| |||
148 | 119 | | |
149 | 120 | | |
150 | 121 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 122 | | |
157 | 123 | | |
158 | 124 | | |
159 | 125 | | |
160 | | - | |
161 | | - | |
162 | 126 | | |
163 | 127 | | |
164 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments