websites: Add role for pyrocufflink.net site
The *websites/pyrocufflink.net* role configures the public web server to host *pyrocufflink.net*. This site has two functions: * It redirects `/` to http://dustin.hatch.name/ * It proxies user home directories (i.e. /~dustin/) to the file serverjenkins-master
parent
87c63ae203
commit
ed5f7108dc
|
@ -0,0 +1,4 @@
|
||||||
|
- name: reload httpd
|
||||||
|
service:
|
||||||
|
name=httpd
|
||||||
|
state=reloaded
|
|
@ -0,0 +1,4 @@
|
||||||
|
dependencies:
|
||||||
|
- role: certbot
|
||||||
|
certbot_domains:
|
||||||
|
- pyrocufflink.net
|
|
@ -0,0 +1,6 @@
|
||||||
|
- name: ensure apache is configured to serve pyrocufflink.net site
|
||||||
|
template:
|
||||||
|
src=pyrocufflink.httpd.conf.j2
|
||||||
|
dest=/etc/httpd/conf.d/pyrocufflink.net.conf
|
||||||
|
mode=0644
|
||||||
|
notify: reload httpd
|
|
@ -0,0 +1,15 @@
|
||||||
|
# vim: set sw=4 ts=4 sts=4 et :
|
||||||
|
|
||||||
|
<VirtualHost _default_:443>
|
||||||
|
ServerName pyrocufflink.net
|
||||||
|
Include conf.d/ssl.include
|
||||||
|
SSLCertificateFile {{ apache_ssl_certificate }}
|
||||||
|
SSLCertificateKeyFile {{ apache_ssl_certificate_key }}
|
||||||
|
|
||||||
|
ProxyRequests Off
|
||||||
|
LogLevel rewrite:trace8
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^/(~[^/]+)(/.*)?$ {{ userdir_proxy_backend }}/$1$2 [P]
|
||||||
|
RewriteRule ^/$ http://dustin.hatch.name/
|
||||||
|
ProxyPassReverse / {{ userdir_proxy_backend }}/
|
||||||
|
</VirtualHost>
|
|
@ -1,6 +1,7 @@
|
||||||
- hosts: public-web
|
- hosts: public-web
|
||||||
roles:
|
roles:
|
||||||
- apache
|
- apache
|
||||||
|
- websites/pyrocufflink.net
|
||||||
- websites/dustin.hatch.name
|
- websites/dustin.hatch.name
|
||||||
- websites/ebonfire.com
|
- websites/ebonfire.com
|
||||||
- websites/nratonpass.com
|
- websites/nratonpass.com
|
||||||
|
|
Loading…
Reference in New Issue