Mercurial > prosody-hg
comparison core/configmanager.lua @ 13631:0fe27632a837
core.configmanager: Remove compat
I have updated my config now, have you? :)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 21 Jan 2025 17:21:48 +0100 |
| parents | 8228f5094f7a |
| children | 0c8c1a8338d1 |
comparison
equal
deleted
inserted
replaced
| 13630:8228f5094f7a | 13631:0fe27632a837 |
|---|---|
| 196 Host = true, host = true, VirtualHost = true, | 196 Host = true, host = true, VirtualHost = true, |
| 197 Component = true, component = true, | 197 Component = true, component = true, |
| 198 FileContents = true, | 198 FileContents = true, |
| 199 FileLine = true, | 199 FileLine = true, |
| 200 FileLines = true, | 200 FileLines = true, |
| 201 Secret = true, | |
| 202 Credential = true, | 201 Credential = true, |
| 203 Include = true, include = true, RunScript = true }, { | 202 Include = true, include = true, RunScript = true }, { |
| 204 __index = function (_, k) | 203 __index = function (_, k) |
| 205 if k:match("^ENV_") then | 204 if k:match("^ENV_") then |
| 206 return os.getenv(k:sub(5)); | 205 return os.getenv(k:sub(5)); |
| 371 :format(config_file, get_line_number(config_file))); | 370 :format(config_file, get_line_number(config_file))); |
| 372 return nil; | 371 return nil; |
| 373 end | 372 end |
| 374 | 373 |
| 375 end | 374 end |
| 376 env.Secret = env.Credential; -- COMPAT remove after all the early adopters s/Secret/Credential/ | |
| 377 | 375 |
| 378 local chunk, err = envload(data, "@"..config_file, env); | 376 local chunk, err = envload(data, "@"..config_file, env); |
| 379 | 377 |
| 380 if not chunk then | 378 if not chunk then |
| 381 return nil, err; | 379 return nil, err; |
