mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 04:03:52 +08:00
Bring fixes from prod back to ansible
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -12,11 +12,7 @@ NameVirtualHost *:80
|
||||
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]
|
||||
</VirtualHost>
|
||||
|
||||
# This is particularly ugly - these have to be updated if the box moves.
|
||||
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>
|
||||
<VirtualHost *:443>
|
||||
##
|
||||
# Domain: people.fedoraproject.org fedorapeople.org
|
||||
# Owner: admin@fedoraproject.org
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
UserDir disable
|
||||
AddCharset UTF-8 .xml
|
||||
|
||||
<Location />
|
||||
Require all granted
|
||||
Options FollowSymLinks
|
||||
</Location>
|
||||
|
||||
<Location /images/>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 5 days"
|
||||
@@ -25,16 +30,12 @@
|
||||
ExpiresDefault "access plus 5 days"
|
||||
</Location>
|
||||
|
||||
<Directory "/srv/planet/site/">
|
||||
Options Indexes FollowSymLinks
|
||||
</Directory>
|
||||
|
||||
RedirectMatch 301 /favicon\.ico$ http://fedoraproject.org/static/images/favicon.ico
|
||||
Redirect /ldc http://fedoraldc.wordpress.com/feed/
|
||||
Alias /justfedora /srv/planet/site/edited
|
||||
|
||||
</VirtualHost>
|
||||
<VirtualHost 152.19.134.196:443 [2610:28:3090:3001:5054:ff:feff:683f]:443>
|
||||
<VirtualHost *:443>
|
||||
##
|
||||
# Domain: planet.fedoraproject.org
|
||||
# Owner: admin@fedoraproject.org
|
||||
@@ -59,6 +60,11 @@
|
||||
UserDir disable
|
||||
AddCharset UTF-8 .xml
|
||||
|
||||
<Location />
|
||||
Require all granted
|
||||
Options FollowSymLinks
|
||||
</Location>
|
||||
|
||||
<Location /images/>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 5 days"
|
||||
@@ -69,10 +75,6 @@
|
||||
ExpiresDefault "access plus 5 days"
|
||||
</Location>
|
||||
|
||||
<Directory "/srv/planet/site/">
|
||||
Options Indexes FollowSymLinks
|
||||
</Directory>
|
||||
|
||||
RedirectMatch 301 /favicon\.ico$ https://fedoraproject.org/static/images/favicon.ico
|
||||
Redirect /ldc http://fedoraldc.wordpress.com/feed/
|
||||
Alias /justfedora /srv/planet/site/edited
|
||||
|
||||
@@ -74,6 +74,22 @@
|
||||
- config
|
||||
- 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.
|
||||
# Default quota for users is 2gb
|
||||
|
||||
Reference in New Issue
Block a user