add security section in config
This commit is contained in:
		
							
								
								
									
										13
									
								
								config.toml
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								config.toml
									
									
									
									
									
								
							@@ -72,3 +72,16 @@ enableRobotsTXT = true
 | 
				
			|||||||
#    name = "теги"
 | 
					#    name = "теги"
 | 
				
			||||||
#    url = "tags"
 | 
					#    url = "tags"
 | 
				
			||||||
#    weight = 3
 | 
					#    weight = 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[security]
 | 
				
			||||||
 | 
					  enableInlineShortcodes = false
 | 
				
			||||||
 | 
					  [security.exec]
 | 
				
			||||||
 | 
					    allow = ['^dart-sass-embedded$', '^go$', '^git$', '^npx$', '^postcss$', '^pandoc$', '^nvim$']
 | 
				
			||||||
 | 
					    osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  [security.funcs]
 | 
				
			||||||
 | 
					    getenv = ['^HUGO_']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  [security.http]
 | 
				
			||||||
 | 
					    methods = ['(?i)GET|POST']
 | 
				
			||||||
 | 
					    urls = ['.*']
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user