diff options
author | drebs <drebs@riseup.net> | 2011-03-12 12:22:53 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2011-03-12 12:22:53 -0300 |
commit | c250722de28cf556005b0d4103854d13cf781b56 (patch) | |
tree | 9ecc88fed1c56ce315106294d0001899f3bccdf4 /templates | |
parent | 1c4f4435af6b07c43c90b09f4742ac9670a96e18 (diff) | |
download | puppet-bootstrap-c250722de28cf556005b0d4103854d13cf781b56.tar.gz puppet-bootstrap-c250722de28cf556005b0d4103854d13cf781b56.tar.bz2 |
default-conf.pp works
Diffstat (limited to 'templates')
-rw-r--r-- | templates/etc/nginx/domain.erb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/templates/etc/nginx/domain.erb b/templates/etc/nginx/domain.erb index 72f864a..b5e35da 100644 --- a/templates/etc/nginx/domain.erb +++ b/templates/etc/nginx/domain.erb @@ -13,7 +13,7 @@ server { # simple reverse-proxy listen 80; - server_name *.<%= domain > <%= domain > + server_name *.<%= domain %> <%= domain %> # enable HSTS header add_header Strict-Transport-Security max-age=15768000; @@ -21,55 +21,55 @@ server { # https redirection by default rewrite ^(.*) https://$host$1 redirect; - # rewrite rules for backups.<%= domain > + # rewrite rules for backups.<%= domain %> #if ($host ~* ^backups\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for admin.<%= domain > + # rewrite rules for admin.<%= domain %> #if ($host ~* ^admin\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for munin.<%= domain > + # rewrite rules for munin.<%= domain %> #if ($host ~* ^munin\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for trac.<%= domain > + # rewrite rules for trac.<%= domain %> #if ($host ~* ^trac\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for nagios.<%= domain > + # rewrite rules for nagios.<%= domain %> #if ($host ~* ^nagios\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for htpasswd.<%= domain > + # rewrite rules for htpasswd.<%= domain %> #if ($host ~* ^htpasswd\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for postfixadmin.<%= domain > + # rewrite rules for postfixadmin.<%= domain %> #if ($host ~* ^postfixadmin\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for mail.<%= domain > + # rewrite rules for mail.<%= domain %> #if ($host ~* ^mail\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; #} - # rewrite rules for lists.<%= domain > + # rewrite rules for lists.<%= domain %> #if ($host ~* ^lists\.<%= domain %>$) { # rewrite ^(.*) https://$host$1 redirect; # break; @@ -86,7 +86,7 @@ server { server { # https reverse proxy listen 443; - server_name *.<%= domain > <%= domain >; + server_name *.<%= domain %> <%= domain %>; # Don't log anything access_log /dev/null; @@ -112,43 +112,43 @@ server { proxy_read_timeout 120; proxy_connect_timeout 120; - # rewrite rules for admin.<%= domain > + # rewrite rules for admin.<%= domain %> if ($host ~* ^admin\.<%= domain %>$) { proxy_pass http://admin:80; break; } - # rewrite rules for munin.<%= domain > + # rewrite rules for munin.<%= domain %> if ($host ~* ^munin\.<%= domain %>$) { proxy_pass http://admin:80; break; } - # rewrite rules for trac.<%= domain > + # rewrite rules for trac.<%= domain %> if ($host ~* ^trac\.<%= domain %>$) { proxy_pass http://admin:80; break; } - # rewrite rules for nagios.<%= domain > + # rewrite rules for nagios.<%= domain %> if ($host ~* ^nagios\.<%= domain %>$) { proxy_pass http://admin:80; break; } - # rewrite rules for postfixadmin.<%= domain > + # rewrite rules for postfixadmin.<%= domain %> if ($host ~* ^postfixadmin\.<%= domain %>$) { proxy_pass http://mail:80; break; } - # rewrite rules for mail.<%= domain > + # rewrite rules for mail.<%= domain %> if ($host ~* ^mail\.<%= domain %>$) { proxy_pass http://mail:80; break; } - # rewrite rules for lists.<%= domain > + # rewrite rules for lists.<%= domain %> if ($host ~* ^lists\.<%= domain %>$) { proxy_pass http://mail:80; break; |