config: accept PORT env + ensure colon (#1181)

* config: accept PORT env + ensure colon

* ensure precedence
This commit is contained in:
Marwan Sulaiman
2019-04-08 15:54:25 -04:00
committed by Aaron Schlesinger
parent f14707e5e5
commit 71aeca7f30
3 changed files with 45 additions and 2 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ StorageType = "memory"
#TLSKeyFile = "server.key"
# Port sets the port the proxy listens on
# Env override: ATHENS_PORT
# Note that PORT needs to be prefixed by :
# Env override: ATHENS_PORT or PORT
# The PORT must be a number or a number prefixed by ":"
Port = ":3000"
# The endpoint for a package registry in case of a proxy cache miss