mirror of
				https://github.com/binwiederhier/ntfy.git
				synced 2025-10-31 13:02:24 +01:00 
			
		
		
		
	Comments
This commit is contained in:
		
							parent
							
								
									f99801a2e6
								
							
						
					
					
						commit
						141ddb3a51
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -529,11 +529,12 @@ type Manager struct { | |||
| 	mu         sync.Mutex | ||||
| } | ||||
| 
 | ||||
| // Config holds the configuration for the user Manager | ||||
| type Config struct { | ||||
| 	Filename            string              // Database filename, e.g. "/var/lib/ntfy/user.db" | ||||
| 	StartupQueries      string              // Queries to run on startup, e.g. to create initial users or tiers | ||||
| 	DefaultAccess       Permission          // Default permission if no ACL matches | ||||
| 	ProvisionEnabled    bool                // Enable auto-provisioning of users and access grants | ||||
| 	ProvisionEnabled    bool                // Enable auto-provisioning of users and access grants, disabled for "ntfy user" commands | ||||
| 	ProvisionUsers      []*User             // Predefined users to create on startup | ||||
| 	ProvisionAccess     map[string][]*Grant // Predefined access grants to create on startup | ||||
| 	QueueWriterInterval time.Duration       // Interval for the async queue writer to flush stats and token updates to the database | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 binwiederhier
						binwiederhier