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