Add ssl/certs and website to new torrent.
Fix ipv6 address in config. Fix apache configs to just add dir access.
This commit is contained in:
parent
96221ca5c9
commit
ff16e2ce8b
4 changed files with 19 additions and 75 deletions
|
@ -36,10 +36,21 @@
|
||||||
- openvpn/client
|
- openvpn/client
|
||||||
- torrent
|
- torrent
|
||||||
|
|
||||||
|
- role: httpd/mod_ssl
|
||||||
|
|
||||||
|
- role: httpd/certificate
|
||||||
|
name: wildcard-2014.fedoraproject.org
|
||||||
|
SSLCertificateChainFile: wildcard-2014.fedoraproject.org.intermediate.cert
|
||||||
|
|
||||||
|
- role: httpd/website
|
||||||
|
name: torrent.fedoraproject.org
|
||||||
|
cert_name: "{{wildcard_cert_name}}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/yumrepos.yml"
|
- include: "{{ tasks }}/yumrepos.yml"
|
||||||
- include: "{{ tasks }}/2fa_client.yml"
|
- include: "{{ tasks }}/2fa_client.yml"
|
||||||
- include: "{{ tasks }}/motd.yml"
|
- include: "{{ tasks }}/motd.yml"
|
||||||
|
- include: "{{ tasks }}/apache.yml"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# If no listen option is given (here or on the command line), opentracker
|
# If no listen option is given (here or on the command line), opentracker
|
||||||
# listens on 0.0.0.0:6969 tcp and udp.
|
# listens on 0.0.0.0:6969 tcp and udp.
|
||||||
#
|
#
|
||||||
listen.tcp_udp [2610:28:3090:3001:dead:beef:cafe:fed7]:6969
|
listen.tcp_udp [2610:28:3090:3001:dead:beef:cafe:fed8]:6969
|
||||||
# listen.tcp_udp 192.168.0.1:80
|
# listen.tcp_udp 192.168.0.1:80
|
||||||
# listen.tcp_udp 10.0.0.5:6969
|
# listen.tcp_udp 10.0.0.5:6969
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,21 +1,4 @@
|
||||||
<VirtualHost *:80>
|
<Directory "/srv/torrent/spins">
|
||||||
##
|
|
||||||
# Domain: torrent.fedoraproject.org
|
|
||||||
# Owner: admin@fedoraproject.org
|
|
||||||
#
|
|
||||||
ServerAdmin admin@fedoraproject.org
|
|
||||||
|
|
||||||
DocumentRoot "/srv/torrent/spins"
|
|
||||||
|
|
||||||
ServerName spins.fedoraproject.org
|
|
||||||
|
|
||||||
ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/spins.fedoraproject.org-error.log-%Y%m%d 86400 -300"
|
|
||||||
CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/spins.fedoraproject.org-access.log-%Y%m%d 86400 -300" common
|
|
||||||
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteRule /favicon\.ico$ http://fedoraproject.org/static/images/favicon.ico [P]
|
|
||||||
|
|
||||||
<Directory "/srv/torrent/spins">
|
|
||||||
Options Indexes FollowSymLinks
|
Options Indexes FollowSymLinks
|
||||||
</Directory>
|
Require all granted
|
||||||
</VirtualHost>
|
</Directory>
|
||||||
|
|
|
@ -1,54 +1,4 @@
|
||||||
NameVirtualHost *:80
|
<Directory "/srv/torrent/www">
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
LoadModule deflate_module modules/mod_deflate.so
|
Require all granted
|
||||||
|
</Directory>
|
||||||
<Location />
|
|
||||||
# Insert filter
|
|
||||||
SetOutputFilter DEFLATE
|
|
||||||
|
|
||||||
# Netscape 4.x has some problems...
|
|
||||||
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
|
||||||
|
|
||||||
# Netscape 4.06-4.08 have some more problems
|
|
||||||
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
|
||||||
|
|
||||||
# MSIE masquerades as Netscape, but it is fine
|
|
||||||
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
|
||||||
|
|
||||||
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
|
|
||||||
# the above regex won't work. You can use the following
|
|
||||||
# workaround to get the desired effect:
|
|
||||||
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
|
|
||||||
|
|
||||||
# Don't compress images
|
|
||||||
SetEnvIfNoCase Request_URI \
|
|
||||||
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
|
|
||||||
|
|
||||||
# Make sure proxies don't deliver the wrong content
|
|
||||||
Header append Vary User-Agent env=!dont-vary
|
|
||||||
</Location>
|
|
||||||
|
|
||||||
FileETag MTime Size
|
|
||||||
|
|
||||||
<VirtualHost *:80>
|
|
||||||
##
|
|
||||||
# Domain: torrent.fedoraproject.org
|
|
||||||
# Owner: admin@fedoraproject.org
|
|
||||||
#
|
|
||||||
ServerAdmin admin@fedoraproject.org
|
|
||||||
|
|
||||||
DocumentRoot "/srv/torrent/www"
|
|
||||||
|
|
||||||
ServerName torrent.fedoraproject.org
|
|
||||||
ServerAlias torrents.fedoraproject.org
|
|
||||||
|
|
||||||
ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/torrent.fedoraproject.org-error.log-%Y%m%d 86400 -300"
|
|
||||||
CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/torrent.fedoraproject.org-access.log-%Y%m%d 86400 -300" common
|
|
||||||
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteRule /favicon\.ico$ http://fedoraproject.org/static/images/favicon.ico [P]
|
|
||||||
|
|
||||||
<Directory "/srv/torrent/www">
|
|
||||||
Options Indexes FollowSymLinks
|
|
||||||
</Directory>
|
|
||||||
</VirtualHost>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue