Unblock pkgs and do redirect instead

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-02-05 13:17:54 +00:00
parent f220d38189
commit 321ad82c19
3 changed files with 3 additions and 14 deletions

View file

@ -5,12 +5,6 @@ num_cpus: 4
tcp_ports: [ 9418 ]
custom_rules: [
'-A INPUT -p tcp -m tcp -s 10.0.0.0/8 --dport 80 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 10.0.0.0/8 --dport 443 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 192.168.0.0/16 --dport 80 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 192.168.0.0/16 --dport 443 -j ACCEPT' ]
# We have both celery (pagure_worker) and web thread wanting to send out fedmsg's.
# To make things easy on the listening side (so avoid contention of binding ports), let's set the pkgs boxes to active fedmsg.
fedmsg_active: True

View file

@ -4,12 +4,6 @@ mem_size: 4096
num_cpus: 4
tcp_ports: [ 9418 ]
custom_rules: [
'-A INPUT -p tcp -m tcp -s 10.0.0.0/8 --dport 80 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 10.0.0.0/8 --dport 443 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 192.168.0.0/16 --dport 80 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 192.168.0.0/16 --dport 443 -j ACCEPT' ]
# Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup
# 2) iptables opens enough ports for all threads for fedmsg

View file

@ -14,8 +14,9 @@ SSLCryptoDevice builtin
<VirtualHost _default_:80>
ServerName pkgs{{ env_suffix }}.fedoraproject.org
#Redirect "/" "https://src{{ env_suffix }}.fedoraproject.org/"
# This is temporary for fixing Kojid because of firewall rules
RewriteCond expr "! -R '192.168.0.0/16'"
RewriteCond expr "! -R '10.0.0.0/8'"
RewriteRule ^(.*)$ https://src.fedoraproject.org/$1 [L,R]
Alias /repo/ /srv/cache/lookaside/
RewriteEngine on