Bring fixes from prod back to ansible
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
2e024af44f
commit
464b49ae0e
3 changed files with 28 additions and 14 deletions
|
@ -12,11 +12,7 @@ NameVirtualHost *:80
|
||||||
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]
|
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
# This is particularly ugly - these have to be updated if the box moves.
|
<VirtualHost *:443>
|
||||||
NameVirtualHost 152.19.134.196:443
|
|
||||||
NameVirtualHost [2610:28:3090:3001:5054:ff:feff:683f]:443
|
|
||||||
|
|
||||||
<VirtualHost 152.19.134.196:443 [2610:28:3090:3001:5054:ff:feff:683f]:443>
|
|
||||||
##
|
##
|
||||||
# Domain: people.fedoraproject.org fedorapeople.org
|
# Domain: people.fedoraproject.org fedorapeople.org
|
||||||
# Owner: admin@fedoraproject.org
|
# Owner: admin@fedoraproject.org
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
UserDir disable
|
UserDir disable
|
||||||
AddCharset UTF-8 .xml
|
AddCharset UTF-8 .xml
|
||||||
|
|
||||||
|
<Location />
|
||||||
|
Require all granted
|
||||||
|
Options FollowSymLinks
|
||||||
|
</Location>
|
||||||
|
|
||||||
<Location /images/>
|
<Location /images/>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresDefault "access plus 5 days"
|
ExpiresDefault "access plus 5 days"
|
||||||
|
@ -25,16 +30,12 @@
|
||||||
ExpiresDefault "access plus 5 days"
|
ExpiresDefault "access plus 5 days"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
<Directory "/srv/planet/site/">
|
|
||||||
Options Indexes FollowSymLinks
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
RedirectMatch 301 /favicon\.ico$ http://fedoraproject.org/static/images/favicon.ico
|
RedirectMatch 301 /favicon\.ico$ http://fedoraproject.org/static/images/favicon.ico
|
||||||
Redirect /ldc http://fedoraldc.wordpress.com/feed/
|
Redirect /ldc http://fedoraldc.wordpress.com/feed/
|
||||||
Alias /justfedora /srv/planet/site/edited
|
Alias /justfedora /srv/planet/site/edited
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
<VirtualHost 152.19.134.196:443 [2610:28:3090:3001:5054:ff:feff:683f]:443>
|
<VirtualHost *:443>
|
||||||
##
|
##
|
||||||
# Domain: planet.fedoraproject.org
|
# Domain: planet.fedoraproject.org
|
||||||
# Owner: admin@fedoraproject.org
|
# Owner: admin@fedoraproject.org
|
||||||
|
@ -59,6 +60,11 @@
|
||||||
UserDir disable
|
UserDir disable
|
||||||
AddCharset UTF-8 .xml
|
AddCharset UTF-8 .xml
|
||||||
|
|
||||||
|
<Location />
|
||||||
|
Require all granted
|
||||||
|
Options FollowSymLinks
|
||||||
|
</Location>
|
||||||
|
|
||||||
<Location /images/>
|
<Location /images/>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresDefault "access plus 5 days"
|
ExpiresDefault "access plus 5 days"
|
||||||
|
@ -69,10 +75,6 @@
|
||||||
ExpiresDefault "access plus 5 days"
|
ExpiresDefault "access plus 5 days"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
<Directory "/srv/planet/site/">
|
|
||||||
Options Indexes FollowSymLinks
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
RedirectMatch 301 /favicon\.ico$ https://fedoraproject.org/static/images/favicon.ico
|
RedirectMatch 301 /favicon\.ico$ https://fedoraproject.org/static/images/favicon.ico
|
||||||
Redirect /ldc http://fedoraldc.wordpress.com/feed/
|
Redirect /ldc http://fedoraldc.wordpress.com/feed/
|
||||||
Alias /justfedora /srv/planet/site/edited
|
Alias /justfedora /srv/planet/site/edited
|
||||||
|
|
|
@ -74,6 +74,22 @@
|
||||||
- config
|
- config
|
||||||
- selinux
|
- selinux
|
||||||
|
|
||||||
|
- name: check the selinux context of the planet dir
|
||||||
|
command: matchpathcon "/srv/planet(/.*)?"
|
||||||
|
register: gitcontext
|
||||||
|
always_run: yes
|
||||||
|
changed_when: false
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
|
- name: set the SELinux policy for the planet dir
|
||||||
|
command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?"
|
||||||
|
when: gitcontext.stdout.find('httpd_sys_content_t') == -1
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
#
|
#
|
||||||
# This sets the default, it's safe to always run.
|
# This sets the default, it's safe to always run.
|
||||||
# Default quota for users is 2gb
|
# Default quota for users is 2gb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue