aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoransible_admin <capsul@cyberia.club>2020-12-16 21:13:40 +0000
committeransible_admin <capsul@cyberia.club>2020-12-16 21:13:40 +0000
commitfd345f556e57f7c28b7a4aaaa33c18a9943f925f (patch)
treef03961ff5c645ae8e6c976ef3417e5dc4e36a58f
parente47b8632ef4e30cd9fc5e1f1da047ea570090cbe (diff)
downloadops-handbook-fd345f556e57f7c28b7a4aaaa33c18a9943f925f.tar.gz
ops-handbook-fd345f556e57f7c28b7a4aaaa33c18a9943f925f.tar.bz2
add nginx files for mail.nullhex.com
-rw-r--r--ansible/files/domechild.cyberia.club/nginx/mail.nullhex.com.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/ansible/files/domechild.cyberia.club/nginx/mail.nullhex.com.conf b/ansible/files/domechild.cyberia.club/nginx/mail.nullhex.com.conf
new file mode 100644
index 0000000..9c60fe3
--- /dev/null
+++ b/ansible/files/domechild.cyberia.club/nginx/mail.nullhex.com.conf
@@ -0,0 +1,30 @@
+server {
+ listen 80;
+ server_name mail.nullhex.com;
+ include /etc/nginx/snippets/letsencrypt.conf;
+
+ location / {
+ return 302 https://$server_name$request_uri;
+ }
+}
+
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+ server_name mail.nullhex.com;
+ include /etc/nginx/snippets/ssl.conf;
+
+ ssl_certificate /etc/ssl/uacme/mail.nullhex.com/cert.pem;
+ ssl_certificate_key /etc/ssl/uacme/private/mail.nullhex.com/key.pem;
+
+ client_max_body_size 10M;
+
+ gzip on;
+ gzip_types text/css;
+
+ location / {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_pass http://127.0.0.1:1323;
+ }
+}
+