Update default settings: increase maxLength to 10MB and maintain 90-day expiry
This commit is contained in:
		
							parent
							
								
									65f5ace561
								
							
						
					
					
						commit
						69db5d56a5
					
				
							
								
								
									
										2
									
								
								app.sh
								
								
								
								
							
							
						
						
									
										2
									
								
								app.sh
								
								
								
								
							| 
						 | 
				
			
			@ -30,7 +30,7 @@ const config = {
 | 
			
		|||
  host: "${HOST:-0.0.0.0}",
 | 
			
		||||
  port: ${PORT:-7777},
 | 
			
		||||
  keyLength: ${KEY_LENGTH:-10},
 | 
			
		||||
  maxLength: ${MAX_LENGTH:-400000},
 | 
			
		||||
  maxLength: ${MAX_LENGTH:-10485760},
 | 
			
		||||
  staticMaxAge: ${STATIC_MAX_AGE:-86400},
 | 
			
		||||
  recompressStaticAssets: ${RECOMPRESS_STATIC_ASSETS:-true},
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@ const config = {
 | 
			
		|||
 | 
			
		||||
  // Document settings
 | 
			
		||||
  keyLength: parseInt(process.env.HASTEBIN_KEY_LENGTH, 10) || 10,
 | 
			
		||||
  maxLength: parseInt(process.env.HASTEBIN_MAX_LENGTH, 10) || 400000,
 | 
			
		||||
  maxLength: parseInt(process.env.HASTEBIN_MAX_LENGTH, 10) || 10485760,
 | 
			
		||||
 | 
			
		||||
  // Static file settings
 | 
			
		||||
  staticMaxAge: parseInt(process.env.HASTEBIN_STATIC_MAX_AGE, 10) || 86400,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue