Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Please allow redefining github api URL for upgrades when behind proxy #5170

Open
ILikePhysics opened this issue Jun 7, 2024 · 5 comments

Comments

@ILikePhysics
Copy link

ILikePhysics commented Jun 7, 2024

I am currently running acme.sh on VMs that cannot access the internet. For install packages and installation file, they need to go through a Nexus repository.

For auto-upgrade to work, I would need to be able to redefine the github api url using a env variable in order to go through my nexus proxy server.

For instance,

_hash_url="https://api.github.com/repos/acmesh-official/$PROJECT_NAME/git/refs/$_hash_path"

Could be changed to:

ACME_SOURCE_URL=https://api.github.com/repos/acmesh-official
_hash_url="$ACME_SOURCE_URL/$PROJECT_NAME/git/refs/$_hash_path"

I would then be able to redefine this env variable as such:

ACME_SOURCE_URL=https://nexus.internal/repository/acme.sh

My nexus server repository would be configured as follow:

https://nexus.internal/repository/acme.sh -> https://api.github.com/repos/acmesh-official
Copy link

github-actions bot commented Jun 7, 2024

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

@ILikePhysics ILikePhysics changed the title Feature: Please allow redefining github api URL for uprades when behind proxy Feature: Please allow redefining github api URL for upgrades when behind proxy Jun 12, 2024
Neilpang pushed a commit that referenced this issue Jun 17, 2024
@Neilpang
Copy link
Member

I just added PROJECT_API for you.

please upgrade to the latest dev branch code and try again.

@ILikePhysics
Copy link
Author

Thanks, will try it out whenever I have a chance and let you know!

@ILikePhysics

This comment was marked as resolved.

@ILikePhysics
Copy link
Author

@Neilpang Thanks, that is exactly what I need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants