aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/etc/nginx/domain.erb36
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;