Fix nextcloud

This commit is contained in:
Jimbo 2024-08-23 01:05:44 -04:00
parent eafc9b8127
commit 8103e7b0f4

View file

@ -148,22 +148,22 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
# Homepage HTML # Homepage HTML
virtualHosts = { virtualHosts = {
"${secrets.cornDomain}" = { "${secrets.cornDomain}" = {
enableACME = true; enableACME = true;
addSSL = true; addSSL = true;
root = "/var/www/cornweb"; root = "/var/www/cornweb";
}; };
# non-free websites # non-free websites
"nonfree.${secrets.cornDomain}" = { "nonfree.${secrets.cornDomain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = "/var/www/non-free"; root = "/var/www/non-free";
}; };
# websdr server # websdr server
"websdr.${secrets.cornDomain}" = { "websdr.${secrets.cornDomain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
@ -172,20 +172,21 @@ in
}; };
# Nextcloud Proxy # Nextcloud Proxy
"cloud.${cornDomain}" = { "cloud.${cornDomain}" = {
enableACME = true; enableACME = true;
addSSL = true; addSSL = true;
locations."/" = { locations."/" = {
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = " extraConfig = ''
location /.well-known/carddav { location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav; return 301 $scheme://$host/remote.php/dav;
} }
location /.well-known/caldav { location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav; return 301 $scheme://$host/remote.php/dav;
}; '';
}; };
}; };
};
appendConfig = '' appendConfig = ''
rtmp { rtmp {
server { server {
@ -214,9 +215,9 @@ in
adminpassFile = "/nextcloud/password.txt"; adminpassFile = "/nextcloud/password.txt";
}; };
settings = { settings = {
trusted_proxies = [ "127.0.0.1" ]; trusted_proxies = [ "127.0.0.1" ];
trusted_domains = [ "cloud.${cornDomain}" ]; trusted_domains = [ "cloud.${cornDomain}" ];
overwriteprotocol = "https"; overwriteprotocol = "https";
}; };
# Get certificates for Coturn # Get certificates for Coturn