mirror of
https://github.com/versia-pub/versia-go.git
synced 2026-03-12 20:19:15 +01:00
chore: rename port env var
This commit is contained in:
parent
a183b92455
commit
728d24505d
3 changed files with 5 additions and 6 deletions
|
|
@ -43,14 +43,13 @@ func Load() {
|
|||
|
||||
var forwardTracesTo *regexp.Regexp
|
||||
if raw := optionalEnvStr("FORWARD_TRACES_TO"); raw != nil {
|
||||
|
||||
if forwardTracesTo, err = regexp.Compile(*raw); err != nil {
|
||||
log.Panic().Err(err).Str("raw", *raw).Msg("Failed to compile")
|
||||
log.Fatal().Err(err).Str("raw", *raw).Msg("Failed to compile")
|
||||
}
|
||||
}
|
||||
|
||||
C = Config{
|
||||
Port: getEnvInt("PORT", 80),
|
||||
Port: getEnvInt("VERSIA_PORT", 80),
|
||||
|
||||
PublicAddress: publicAddress,
|
||||
Host: publicAddress.Host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue