summaryrefslogtreecommitdiffstats
path: root/modules/tozt/files/nginx
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-11-05 21:56:01 -0500
committerJesse Luehrs <doy@tozt.net>2017-11-05 21:56:01 -0500
commitbd9f23facf43df40a481aa07732600d7512a86dc (patch)
treead473b769ae0597669af07a67118fff77810facf /modules/tozt/files/nginx
parent18dab99801d978f6b037858e5dafb197e5f8c804 (diff)
downloadpuppet-tozt-bd9f23facf43df40a481aa07732600d7512a86dc.tar.gz
puppet-tozt-bd9f23facf43df40a481aa07732600d7512a86dc.zip
nginx config
Diffstat (limited to 'modules/tozt/files/nginx')
-rw-r--r--modules/tozt/files/nginx/blog.conf28
-rw-r--r--modules/tozt/files/nginx/doy.conf42
-rw-r--r--modules/tozt/files/nginx/mail.conf35
-rw-r--r--modules/tozt/files/nginx/paste.conf34
4 files changed, 139 insertions, 0 deletions
diff --git a/modules/tozt/files/nginx/blog.conf b/modules/tozt/files/nginx/blog.conf
new file mode 100644
index 0000000..b1af3b6
--- /dev/null
+++ b/modules/tozt/files/nginx/blog.conf
@@ -0,0 +1,28 @@
+server {
+ listen 80;
+ server_name blog.tozt.net;
+
+ access_log /var/log/nginx/blog.access.log;
+ error_log /var/log/nginx/blog.error.log;
+
+ location / {
+ root /home/doy/blog;
+ index index.html;
+ }
+}
+
+server {
+ listen 443;
+ server_name blog.tozt.net;
+
+ access_log /var/log/nginx/blog.access.log;
+ error_log /var/log/nginx/blog.error.log;
+
+ include ssl;
+
+ location / {
+ root /home/doy/blog;
+ index index.html;
+ }
+}
+# vim:ft=nginx
diff --git a/modules/tozt/files/nginx/doy.conf b/modules/tozt/files/nginx/doy.conf
new file mode 100644
index 0000000..071f3a4
--- /dev/null
+++ b/modules/tozt/files/nginx/doy.conf
@@ -0,0 +1,42 @@
+server {
+ listen 80 default;
+ server_name tozt.net;
+
+ access_log /var/log/nginx/doy.access.log;
+ error_log /var/log/nginx/doy.error.log;
+
+ location / {
+ root /home/doy/public_html;
+ index index.html index.htm;
+ }
+
+ location /recipes/ {
+ root /home/doy/public_html;
+ index index.html index.htm;
+ default_type text/plain;
+ autoindex on;
+ }
+}
+
+server {
+ listen 443 default;
+ server_name tozt.net;
+
+ access_log /var/log/nginx/doy.access.log;
+ error_log /var/log/nginx/doy.error.log;
+
+ include ssl;
+
+ location / {
+ root /home/doy/public_html;
+ index index.html index.htm;
+ }
+
+ location /recipes/ {
+ root /home/doy/public_html;
+ index index.html index.htm;
+ default_type text/plain;
+ autoindex on;
+ }
+}
+# vim:ft=nginx
diff --git a/modules/tozt/files/nginx/mail.conf b/modules/tozt/files/nginx/mail.conf
new file mode 100644
index 0000000..5af975a
--- /dev/null
+++ b/modules/tozt/files/nginx/mail.conf
@@ -0,0 +1,35 @@
+server {
+ listen 80;
+ server_name mail.tozt.net;
+
+ access_log /var/log/nginx/mail.access.log;
+ error_log /var/log/nginx/mail.error.log;
+
+ rewrite ^(.*) https://$host$1 permanent;
+}
+
+server {
+ listen 443;
+ server_name mail.tozt.net;
+
+ access_log /var/log/nginx/mail.access.log;
+ error_log /var/log/nginx/mail.error.log;
+
+ include ssl;
+ add_header Strict-Transport-Security max-age=15768000;
+
+ location / {
+ root /usr/share/webapps/roundcubemail;
+ index index.php index.html index.htm;
+ }
+
+ location ~ \.php$ {
+ root /usr/share/webapps/roundcubemail;
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME /usr/share/webapps/roundcubemail$fastcgi_script_name;
+ fastcgi_param HTTPS on;
+ include fastcgi_params;
+ }
+}
+# vim:ft=nginx
diff --git a/modules/tozt/files/nginx/paste.conf b/modules/tozt/files/nginx/paste.conf
new file mode 100644
index 0000000..3b98aaf
--- /dev/null
+++ b/modules/tozt/files/nginx/paste.conf
@@ -0,0 +1,34 @@
+server {
+ listen 80;
+ server_name paste.tozt.net;
+
+ access_log /var/log/nginx/paste.access.log;
+ error_log /var/log/nginx/paste.error.log;
+
+ include /etc/nginx/mime.types.paste;
+
+ root /home/doy/paste;
+ default_type text/plain;
+ gzip_types text/plain;
+
+ location / { }
+}
+
+server {
+ listen 443;
+ server_name paste.tozt.net;
+
+ access_log /var/log/nginx/paste.access.log;
+ error_log /var/log/nginx/paste.error.log;
+
+ include ssl;
+
+ include /etc/nginx/mime.types.paste;
+
+ root /home/doy/paste;
+ default_type text/plain;
+ gzip_types text/plain;
+
+ location / { }
+}
+# vim:ft=nginx