|
@@ -0,0 +1,37 @@
|
|
|
|
|
+server {
|
|
|
|
|
+ listen 443 ssl;
|
|
|
|
|
+ server_name concise-it.com;
|
|
|
|
|
+
|
|
|
|
|
+ ssl_certificate /etc/letsencrypt/live/concise-it.com/fullchain.pem;
|
|
|
|
|
+ ssl_certificate_key /etc/letsencrypt/live/concise-it.com/privkey.pem;
|
|
|
|
|
+ include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
|
|
|
+ ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
|
+
|
|
|
|
|
+ location /.well-known/acme-challenge/ {
|
|
|
|
|
+ root /var/www/html;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ # Redirect CalDAV and CardDAV to SOGo
|
|
|
|
|
+ location = /.well-known/caldav {
|
|
|
|
|
+ return 301 https://mailcow.conciseit.net/SOGo/dav/;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ location = /.well-known/carddav {
|
|
|
|
|
+ return 301 https://mailcow.conciseit.net/SOGo/dav/;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ location / {
|
|
|
|
|
+ return 404;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+server {
|
|
|
|
|
+ listen 80;
|
|
|
|
|
+ server_name concise-it.com;
|
|
|
|
|
+
|
|
|
|
|
+ if ($host = concise-it.com) {
|
|
|
|
|
+ return 301 https://$host$request_uri;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return 404;
|
|
|
|
|
+}
|