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

Support plugin behind a reverse proxy #17

Open
fuckingdarkknight opened this issue May 10, 2023 · 0 comments
Open

Support plugin behind a reverse proxy #17

fuckingdarkknight opened this issue May 10, 2023 · 0 comments

Comments

@fuckingdarkknight
Copy link

Hello,

I've a nexus behind a nginx reverse proxy, the configuration is like below :

    location /ansiblegalaxy {
        proxy_pass http://127.0.0.1:8081/repository/ansiblegalaxy-proxy;
    }
    location / {
        return 403;
    }

I'm doing this kind of test :

ansible-galaxy collection install azure.azcollection -s https://XXX/ansiblegalaxy/
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://XXX/repository/ansiblegalaxy-proxy/download/azure-azcollection-1.15.0.tar.gz to /home/batman/.ansible/tmp/ansible-local-218846c_iepoj9/tmppmvco8cw/azure-azcollection-1.15.0-qc8c46wk
ERROR! Failed to download collection tar from 'cmd_arg': HTTP Error 403: Forbidden

The downloading URL match to nexus URL and not the proxy_pass directive.

Could it be possible for you do to someting on this issue ?

Thanks by advance, else your plugin works perfectly good. Good works ;-)

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

1 participant