Skip to content

Commit 8148a5c

Browse files
Do not redirect HTTP traffic.
1 parent 81017e7 commit 8148a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

icpc-wf/ansible/nginx-setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
copy: src={{DJ_DIR}}/etc/nginx-conf-inner remote_src=yes dest=/etc/nginx/snippets/domjudge-inner
2424
notify: restart nginx
2525

26-
- name: remove HTTP host
26+
- name: remove HTTP host and HTTP->HTTPS redirect
2727
blockinfile:
2828
path: /etc/nginx/sites-available/domjudge.conf
2929
marker: "{mark}"
3030
marker_begin: "### http host config ###"
31-
marker_end: "# Alternatively, use HTTPS and redirect HTTP to HTTPS:"
31+
marker_end: "# Or block all HTTP requests"
3232
notify: restart nginx
3333

3434
- name: enable HTTP redirect and HTTPS blocks

0 commit comments

Comments
 (0)