nexus-repository-dart icon indicating copy to clipboard operation
nexus-repository-dart copied to clipboard

Proxy Flutter Dart - Nexus

Open robbyq92 opened this issue 6 months ago • 0 comments

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?

robbyq92 avatar Aug 14 '24 10:08 robbyq92