parent
08f5b66561
commit
3430d47412
3 changed files with 21 additions and 1 deletions
5
roles/fedora-web/src/files/expires.conf
Normal file
5
roles/fedora-web/src/files/expires.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
<Location "/static/vendor/emojione/emojione.sprites.png">
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 week"
|
||||
Header append Cache-Control "public"
|
||||
</Location>
|
|
@ -19,3 +19,15 @@
|
|||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/src
|
||||
|
||||
- name: Copy some config files for {{website}}
|
||||
copy: >
|
||||
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
|
||||
owner=root group=root mode=0644
|
||||
with_items:
|
||||
- expires.conf
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/src
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
Alias /static/hotspot.txt /srv/web/hotspot.txt
|
||||
{% endif %}
|
||||
|
||||
{% if site_name == "src.fedoraproject.org" %}
|
||||
Include "conf.d/src.fedoraproject.org/expires.conf"
|
||||
{% endif %}
|
||||
|
||||
{% if sslonly %}
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/.*
|
||||
|
@ -85,4 +89,3 @@
|
|||
Include "conf.d/{{ site_name }}/*.conf"
|
||||
</VirtualHost>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue