Skip to content

Commit

Permalink
Remove CRAN/PyPI env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Dec 6, 2024
1 parent ca48751 commit 91c8191
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ Check and, if you would like, change the following environment variables for the
| NEXUS_PORT | Port of Nexus OSS |
| NEXUS_PATH | [Context path](https://help.sonatype.com/en/configuring-the-runtime-environment.html#changing-the-context-path) of Nexus OSS. Only used if the Nexus is hosted behind a reverse proxy with a URL like `https://your_url.domain/nexus/`. If not defined, the base URI remains `/`. |
| ENTR_FALLBACK | If defined, don't use `entr` to check for allowlist updates (this will be less reactive but we have found `entr` to not work in some situations) |
| PYPI_REMOTE_URL | URL of the PYPI Remote repository (`https://pypi.org/` by default) |
| CRAN_REMOTE_URL | URL of the CRAN Remote repository (`https://cran.r-project.org/` by default) |
| APT_REMOTE_URL | URL of the APT Remote repository (`http://deb.debian.org/debian` by default) |
| APT_DISTRO | Name of the APT distribution (`bookworm` by default) |
| APT_ALLOWED_ARCHIVES | Comma-separated list of the authorized APT archives (`main,contrib,non-free-firmware,non-free` by default) |
Expand Down Expand Up @@ -140,4 +138,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
6 changes: 2 additions & 4 deletions nexus_allowlist/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
ALLOWED_ARCHIVES,
APT_DISTRO,
APT_REMOTE_URL,
CRAN_REMOTE_URL,
PYPI_REMOTE_URL,
)


Expand All @@ -24,12 +22,12 @@ class Repository:
"pypi_proxy": Repository(
repo_type=RepositoryType.PYPI,
name="pypi-proxy",
remote_url=PYPI_REMOTE_URL,
remote_url="https://pypi.org",
),
"cran_proxy": Repository(
repo_type=RepositoryType.CRAN,
name="cran-proxy",
remote_url=CRAN_REMOTE_URL,
remote_url="https://cran.r-project.org",
),
"apt_proxy": Repository(
repo_type=RepositoryType.APT,
Expand Down
2 changes: 0 additions & 2 deletions nexus_allowlist/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import os

PYPI_REMOTE_URL = os.getenv("PYPI_REMOTE_URL", "https://pypi.org/")
CRAN_REMOTE_URL = os.getenv("CRAN_REMOTE_URL", "https://cran.r-project.org/")
APT_REMOTE_URL = os.getenv("APT_REMOTE_URL", "http://deb.debian.org/debian")
APT_DISTRO = os.getenv("APT_DISTRO", "bookworm")
ALLOWED_ARCHIVES = os.getenv(
Expand Down

0 comments on commit 91c8191

Please sign in to comment.