File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 28
28
path : /etc/nginx/sites-available/domjudge.conf
29
29
marker : " {mark}"
30
30
marker_begin : " ### http host config ###"
31
- marker_end : " # Or block all HTTP requests"
31
+ marker_end : " # Or block all cleartext HTTP requests"
32
32
notify : restart nginx
33
33
34
34
- name : enable HTTP redirect and HTTPS blocks
39
39
replace : ' \1'
40
40
notify : restart nginx
41
41
42
- - name : remove IPv6 listens
43
- lineinfile :
44
- path : /etc/nginx/sites-available/domjudge.conf
45
- regexp : ' listen\s+\[.*\]:\d+;'
46
- state : absent
47
- notify : restart nginx
48
-
49
- - name : change IPv4 HTTP listen to default server
50
- lineinfile :
51
- path : /etc/nginx/sites-available/domjudge.conf
52
- regexp : ' listen.*80;'
53
- line : " \t listen 80 default_server;"
54
- notify : restart nginx
55
-
56
- - name : change IPv4 HTTPS listen to all interfaces
57
- lineinfile :
58
- path : /etc/nginx/sites-available/domjudge.conf
59
- regexp : ' listen.*443;'
60
- line : " \t listen 443 ssl http2 default_server;"
61
- notify : restart nginx
62
-
63
42
- name : increase max body size to upload size
64
43
lineinfile :
65
44
path : /etc/nginx/snippets/domjudge-inner
You can’t perform that action at this time.
0 commit comments