adding a few more tweaks
This commit is contained in:
		
							parent
							
								
									403f2b96b1
								
							
						
					
					
						commit
						5023922d5b
					
				
					 1 changed files with 24 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -271,8 +271,29 @@
 | 
			
		|||
      opcache.memory_consumption = 256;
 | 
			
		||||
      opcache.jit = 1255;
 | 
			
		||||
      opcache.jit_buffer_size = 128M;
 | 
			
		||||
    }
 | 
			
		||||
    };
 | 
			
		||||
    extraOptions = {
 | 
			
		||||
      enabledPreviewProviders = [
 | 
			
		||||
        "OC\\Preview\\BMP"
 | 
			
		||||
        "OC\\Preview\\GIF"
 | 
			
		||||
        "OC\\Preview\\JPEG"
 | 
			
		||||
        "OC\\Preview\\Krita"
 | 
			
		||||
        "OC\\Preview\\MarkDown"
 | 
			
		||||
        "OC\\Preview\\MP3"
 | 
			
		||||
        "OC\\Preview\\OpenDocument"
 | 
			
		||||
        "OC\\Preview\\PNG"
 | 
			
		||||
        "OC\\Preview\\TXT"
 | 
			
		||||
        "OC\\Preview\\XBitmap"
 | 
			
		||||
        "OC\\Preview\\HEIC"
 | 
			
		||||
        "OC\\Preview\\Movie"
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
    extraAppsEnable = true;
 | 
			
		||||
    extraApps = with config.services.nextcloud.package.packages.apps; {
 | 
			
		||||
      inherit contacts calendar cookbook
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
 | 
			
		||||
 | 
			
		||||
  # CADDY
 | 
			
		||||
  services.caddy = {
 | 
			
		||||
| 
						 | 
				
			
			@ -359,8 +380,8 @@
 | 
			
		|||
      "nc.cochrun.xyz".extraConfig = ''
 | 
			
		||||
        reverse_proxy localhost:8080
 | 
			
		||||
        encode gzip
 | 
			
		||||
        redir /.well-known/carddav /remote.php/carddav 301
 | 
			
		||||
        redir /.well-known/caldav /remote.php/caldav 301
 | 
			
		||||
        redir /.well-known/carddav /remote.php/dav 301
 | 
			
		||||
        redir /.well-known/caldav /remote.php/dav 301
 | 
			
		||||
        header Strict-Transport-Security "max-age=15768000; includeSubDomains; reload;"
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue