Categorygithub.com/toowoxx/smb-http-proxy
modulepackage
1.1.0-3
Repository: https://github.com/toowoxx/smb-http-proxy.git
Documentation: pkg.go.dev

# README

scjalliance/smb-http-proxy

Usage: smb-http-proxy --url-prefix=STRING --source=STRING --user=STRING --password=STRING --domain=STRING --conn-timeout=5s

Serves files from an SMB share over HTTP.

Flags:
  -h, --help                 Show context-sensitive help.
      --url-prefix=STRING    ($URL_PREFIX)
      --source=STRING        ($SOURCE)
      --user=STRING          ($USER)
      --password=STRING      ($PASSWORD)
      --domain=STRING        ($DOMAIN)
      --conn-timeout=5s      ($CONN_TIMEOUT)
docker run --name smb_something --restart=unless-stopped -p 0.0.0.0:5432:80 --rm -it -e "URL_PREFIX=/some/url/prefix/" -e "SOURCE=//flange.example.com/best-laid-plans/" -e "USER=somebody" -e "PASSWORD=secreteating" -e "DOMAIN=yourdomain" scjalliance/smb-http-proxy

# Functions

NewConnection establishes a new SMB connection to a remote file system.
NewFS returns a new SMB filesystem.
ServerAddrFromPath returns the server address for the given UNC path.

# Variables

ErrAlreadyConnected is returned when a file system is already in a connected state.
ErrBadPath is returned when a bad UNC share path is provided.
ErrClosed is returned when an operation is attempted on a closed connection.

# Structs

Config holds a set of SMB HTTP proxy configuration values.
SMBConn is an individual.
SMBFS is capable of opening files on a remote file system over the SMB protocol.