Skip to content

gfa-server: Add support for Unix domain sockets#36

Open
0xaf1f wants to merge 1 commit intolh3:masterfrom
0xaf1f:unix-sockets
Open

gfa-server: Add support for Unix domain sockets#36
0xaf1f wants to merge 1 commit intolh3:masterfrom
0xaf1f:unix-sockets

Conversation

@0xaf1f
Copy link

@0xaf1f 0xaf1f commented Aug 15, 2024

We're preparing to allow users of the NIH Biowulf cluster to create instances of gfa-server, but we'd prefer to use Unix sockets rather than TCP ports for better access control. This patch adds support for Unix sockets.

Usage to tunnel to a server running gfatools would be as follows:

On the server (running from the gfatools folder)

./gfa-server -s /tmp/test-gfa.sock test/MT.gfa

On the workstation, bind the local port 8000 to the socket at /tmp/test-gfa.sock on the remote server:

ssh -L 8000:/tmp/test-gfa.sock user@server

Then the gfa-server becomes accessible in the workstation browser at localhost:8000/view

For improved security over TCP ports if the user desires.
Special thanks to Douglas Makey's guide at
dev.to/douglasmakey/understanding-unix-domain-sockets-in-golang-32n8
(section "Use Unix domain socket with HTTP Server")
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

Successfully merging this pull request may close these issues.

1 participant