roles/pleroma-otp/templates/pleroma.cloudflare.nginx.conf.j2
changeset 87 4f87097dd651
parent 84 d0c40727e6ff
--- a/roles/pleroma-otp/templates/pleroma.cloudflare.nginx.conf.j2	Sun Jan 19 16:57:51 2020 -0600
+++ b/roles/pleroma-otp/templates/pleroma.cloudflare.nginx.conf.j2	Sun Jan 19 21:51:10 2020 -0600
@@ -12,7 +12,7 @@
 server {
     listen {{nginx_port}};
     # listen [::]:{{nginx_port}};
-    server_name _;
+    server_name {{nginx_server_name}};
     return 301 https://$host$request_uri;
 }
 
@@ -22,7 +22,7 @@
 server {
     listen {{nginx_ssl_port}} ssl http2;
     # listen [::]:{{nginx_ssl_port}} ssl ipv6only=on;
-    server_name _;
+    server_name {{nginx_server_name}};
 
     ssl_certificate {{nginx_ssl_cert}};
     ssl_certificate_key {{nginx_ssl_privkey}};