Skip to content

Commit

Permalink
Rename the TUF_API_URL to RSTUF_API_URL
Browse files Browse the repository at this point in the history
Rename the environment variable setting `TUF_API_URL` to `RSTUF_API_URL`
as this API is provided by Repository Service for TUF (RSTUF).

Signed-off-by: Kairo de Araujo <kdearaujo@vmware.com>
  • Loading branch information
Kairo de Araujo committed Jul 29, 2023
1 parent 1f31fb7 commit 5751be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/environment
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RECAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
RECAPTCHA_SECRET_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

TUF_METADATA_URL="http://files:9001/metadata/"
TUF_API_URL="http://rstuf-api/api/v1/"
RSTUF_API_URL="http://rstuf-api/api/v1/"
TUF_DATABASE_URL="postgresql://postgres@db/rstuf"
TUF_ROOT_SECRET="an insecure private key password"
TUF_ONLINE_SECRET="an insecure private key password"
2 changes: 1 addition & 1 deletion warehouse/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def configure(settings=None):
)
maybe_set(settings, "tuf.database.url", "TUF_DATABASE_URL")
maybe_set(settings, "tuf.metadata.url", "TUF_METADATA_URL")
maybe_set(settings, "tuf.api.url", "TUF_API_URL")
maybe_set(settings, "tuf.api.url", "RSTUF_API_URL")
maybe_set(settings, "tuf.root1.secret", "TUF_ROOT_SECRET")
maybe_set(settings, "tuf.root2.secret", "TUF_ROOT_SECRET")
maybe_set(settings, "tuf.online.secret", "TUF_ROOT_SECRET")
Expand Down

0 comments on commit 5751be8

Please sign in to comment.