mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-03 23:56:18 +00:00 
			
		
		
		
	- update github actions
- update docker build - move default database to /app/data (#179) - move config file location to /app/config
This commit is contained in:
		@@ -87,7 +87,7 @@ func defaultConfig() *Config {
 | 
			
		||||
 | 
			
		||||
	cfg.Database = DatabaseConfig{
 | 
			
		||||
		Type: "sqlite",
 | 
			
		||||
		DSN:  "sqlite.db",
 | 
			
		||||
		DSN:  "data/sqlite.db",
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	cfg.Web = WebConfig{
 | 
			
		||||
@@ -140,7 +140,7 @@ func GetConfig() (*Config, error) {
 | 
			
		||||
 | 
			
		||||
	// override config values from YAML file
 | 
			
		||||
 | 
			
		||||
	cfgFileName := "config.yml"
 | 
			
		||||
	cfgFileName := "config/config.yml"
 | 
			
		||||
	if envCfgFileName := os.Getenv("WG_PORTAL_CONFIG"); envCfgFileName != "" {
 | 
			
		||||
		cfgFileName = envCfgFileName
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user