mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
more efficient
This commit is contained in:
parent
2df7bac979
commit
cd8a1caa8b
@ -137,7 +137,7 @@ def make_domain_config(domain, templates, ssl_certificates, env):
|
||||
nginx_conf_extra = ""
|
||||
|
||||
# Add .well-known redirects for CalDAV and CardDAV to TLD, which may make for better service discovery
|
||||
if len(domain.split('.'))==2:
|
||||
if len(domain.count('.'))==1: # something.tld
|
||||
nginx_conf_extra += f"\n\trewrite ^/.well-known/caldav https://{env['PRIMARY_HOSTNAME']}/cloud/remote.php/dav/ redirect;"
|
||||
nginx_conf_extra += f"\n\trewrite ^/.well-known/carddav https://{env['PRIMARY_HOSTNAME']}/cloud/remote.php/dav/ redirect;\n"
|
||||
nginx_conf_extra += f"\n\tlocation /dav {{"
|
||||
|
Loading…
Reference in New Issue
Block a user