Skip to content

Commit

Permalink
CLDR-7633 ansible: move performance improvements into ansible (#3708)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored May 9, 2024
1 parent 32d4619 commit 233a608
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/scripts/ansible/certbot-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
--keep --redirect --uir --hsts --staple-ocsp --must-staple
args:
creates: /etc/letsencrypt/renewal/{{ inventory_hostname }}.conf
- name: Speedup http2
replace:
path: /etc/nginx/sites-enabled/default
regexp: '^(\s*)listen 443 ssl;(.*)$'
replace: '\1listen 443 ssl http2;\2'
1 change: 1 addition & 0 deletions tools/scripts/ansible/cldr-apps-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
force: no
update: no
version: main
remote: origin
# this is a deep clone because we will need to keep updating
# it with history. It does not include LFS as that
# is not needed for the surveytool.
Expand Down
12 changes: 12 additions & 0 deletions tools/scripts/ansible/nginx-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
group: root
mode: '0644'
notify: 'Restart Nginx'
- name: Setup gzip.conf
copy:
dest: /etc/nginx/conf.d/gzip.conf
owner: root
group: root
mode: '0644'
content: |
gzip on;
gzip_types text/plain application/xml application/json text/javascript application/x-javascript;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
notify: 'Restart Nginx'
- name: Setup reverse proxy
blockinfile:
path: /etc/nginx/sites-enabled/default
Expand Down

0 comments on commit 233a608

Please sign in to comment.