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

Proxy Flutter Dart - Nexus #16

Open
robbyq92 opened this issue Aug 14, 2024 · 0 comments
Open

Proxy Flutter Dart - Nexus #16

robbyq92 opened this issue Aug 14, 2024 · 0 comments

Comments

@robbyq92
Copy link

robbyq92 commented Aug 14, 2024

Hello, I have a problem configuring the proxy on a Nexus.

I have successfully installed the dart/flutter plugin in the nexus repository

export PUB_HOSTED_URL=http://[nexus_url]/repository/[repository_name]/ export FLUTTER_STORAGE_BASE_URL=http://[nexus_url]/repository/[repository_name]/

I have a dockerfile that I add those variables
ENV PUB_HOSTED_URL=http://xxxx:8089/repository/flutter-registry-proxy ENV FLUTTER_STORAGE_BASE_URL=http://xxxx:8089/repository/flutter-registry-proxy

now when I go to see the log (it is on gitlabci a pipeline)
HTTP response 502 Bad Gateway for GET http://xxxxx:8089/repository/flutter-registry-proxy/api/packages/floor_generator | took 0:00:00.015168 | cache-control: no-cache, no-store, max-age=0, must-revalidate, post-check=0, pre-check=0 | content-length: 1543 | content-type: text/html | x-frame-options: DENY | pragma: no-cache | x-xss-protection: 1; mode=block | x-content-type-options: nosniff | content-security-policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation | server: Nexus/3.58.1-02 (OSS)

but when I go to check the http://xxxxx:8089/repository/flutter-registry-proxy/api/packages/floor_generator I get the 502 error
imagen

but if i go to http://xxxxx:8089/repository/flutter-registry-proxy/api/packages/floor_generator**/**
i cant see the repository of nexus

imagen

it a bug? cand help @mat1e @cranst0n do you know what happend?

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