Add Proxy sync and serving to whatcanidoforfedora.org
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
c5832cf276
commit
6bb8e1002e
4 changed files with 17 additions and 9 deletions
|
@ -49,6 +49,8 @@
|
|||
website: alt.fedoraproject.org
|
||||
- role: fedora-web/src
|
||||
website: src.fedoraproject.org
|
||||
- role: fedora-web/whatcanidoforfedora
|
||||
website: whatcanidoforfedora.org
|
||||
|
||||
# Some other static content, not strictly part of "fedora-web" goes below here
|
||||
- role: fedora-budget/proxy
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
25 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::whatcanidoforfedora.org/ /srv/web/whatcanidoforfedora.org/
|
|
@ -9,3 +9,9 @@
|
|||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/whatcanidoforfedora
|
||||
|
||||
- name: Copy in the sync-whatcanidoforfedora cronjob
|
||||
copy: src=cron-sync-whatcanidoforfedora dest=/etc/cron.d/sync-whatcanidoforfedora
|
||||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/whatcanidoforfedora
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
# redirect to version without the www. on the front
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP_HOST} ^www\.whatcanidoforfedora\.org [NC]
|
||||
RewriteRule ^(.*)$ http://whatcanidoforfedora.org%{REQUEST_URI} [L,R=301]
|
||||
RewriteCond %{HTTPS_HOST} ^www\.whatcanidoforfedora\.org [NC]
|
||||
RewriteRule ^(.*)$ https://whatcanidoforfedora.org%{REQUEST_URI} [L,R=301]
|
||||
DocumentRoot /srv/web/whatcanidoforfedora.org
|
||||
Alias /favicon.ico /srv/web/fedoraproject.org/static/images/favicon.ico
|
||||
|
||||
ProxyPass / http://asknot-threebean.rhcloud.com/
|
||||
ProxyPassReverse / http://asknot-threebean.rhcloud.com/
|
||||
#{% if env == "production" %}
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
|
||||
|
||||
FileETag MTime Size
|
||||
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 30 minutes"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue