Move the magazine config to a template and add staging version. Ticket 4683

This commit is contained in:
Kevin Fenzi 2015-03-12 14:53:58 +00:00
parent 3e19ed68bd
commit f5509ed401
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,5 @@
- name: Copy some config files for {{website}}
copy: >
template: >
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
owner=root group=root mode=0644
with_items:

View file

@ -7,5 +7,11 @@ RewriteRule ^(.*)$ https://fedoramagazine.org%{REQUEST_URI} [L,R=301]
#ProxyPass / http://wp-fedoramag.rhcloud.com/
#ProxyPassReverse / http://wp-fedoramag.rhcloud.com/
{% if env == "production" %}
ProxyPass / http://66.226.72.63/
ProxyPassReverse / http://66.226.72.63/
{% else %}
# In staging we point to the staging version of the magazine
ProxyPass / http://104.207.133.220/
ProxyPassReverse / http://104.207.133.220/
{% endif %}