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

Enable running remote cargo registry server #33629

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Oct 10, 2023

Problem

The registry server cannot accessed if it is running on a remote machine.

Summary of Changes

The registry index configuration contains the URL of the web API. This must contain the public IP of the server, if the server is running remotely.
This PR adds an optional command line argument to the server, which if used will identify machine's public IP address. This IP will be filled in the the index configuration.

Fixes #

@pgarg66 pgarg66 marked this pull request as ready for review October 10, 2023 17:24
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #33629 (5da95e3) into master (4042079) will increase coverage by 0.0%.
Report is 1073 commits behind head on master.
The diff coverage is 87.5%.

@@            Coverage Diff            @@
##           master   #33629     +/-   ##
=========================================
  Coverage    81.8%    81.8%             
=========================================
  Files         766      806     +40     
  Lines      209084   217456   +8372     
=========================================
+ Hits       171145   178000   +6855     
- Misses      37939    39456   +1517     

@pgarg66 pgarg66 requested a review from Lichtso October 10, 2023 17:56
@Lichtso
Copy link
Contributor

Lichtso commented Oct 10, 2023

Hmm, I think people can figure out their public IP addresses by other means. Also, they will have to setup the port forwarding in their firewall / NAT anyway.

@pgarg66
Copy link
Contributor Author

pgarg66 commented Oct 10, 2023

Hmm, I think people can figure out their public IP addresses by other means. Also, they will have to setup the port forwarding in their firewall / NAT anyway.

We can add command line parameters to configure public IP and port.

@pgarg66 pgarg66 force-pushed the cargo-remote-registry branch from 6b03f9e to 18fa727 Compare October 10, 2023 19:38
@pgarg66 pgarg66 force-pushed the cargo-remote-registry branch from 18fa727 to 5da95e3 Compare October 10, 2023 21:52
@pgarg66 pgarg66 added the automerge Merge this Pull Request automatically once CI passes label Oct 10, 2023
@mergify mergify bot merged commit c929775 into solana-labs:master Oct 10, 2023
16 checks passed
@pgarg66 pgarg66 deleted the cargo-remote-registry branch October 10, 2023 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants