|
2 months ago | |
---|---|---|
internal | 2 months ago | |
.gitignore | 2 months ago | |
LICENSE | 4 months ago | |
cmd.go | 2 months ago | |
config.yaml | 2 months ago | |
go.mod | 3 months ago | |
go.sum | 3 months ago | |
readme.md | 2 months ago |
readme.md
Linx-Util
This is a linx client -- use it to upload files to a linx server.
Configuration
Configuration is managed from config.yaml
and currently supports the following
server: https://f.ruina.exposed/
expiry: 1 #in minutes
randomize: no
accessKey: <key>
deleteKey: <DifferentKey>
Building
You can build the script with Golang installed on your computer just run
go build -o linx-util
Alternatively there will be a binary provided in the releases page
Usage
Uploading
linx-util [file.mp4]
This will upload the file to f.ruina.exposed with a default expiration of 1 day. The client will time out within 1 hour and uploads of up to 2GB are supported.
if this upload is meant to be used on a cytube instance it MUST be an mp4
--access
-a
[string]
pass an access key so only people with the key can see what you have uploaded
To generate a strong and short enough key for this try using
uuid | cut -d - -f1 | base64
You can also upload multiple files with linx-util -f [file1],[file2],[fileN]
Deletion
--delete-key
-k
pass your key to delete your media from a linx server
I recommend you using the following command to generate a delete key for linx
uuid | base64
--delete
-d
Flag to enable deletion, the command changes slightly with this due to the constraints of the linx-api
linx-util [file-url] -dk <key>
warning: A delete key is required for this to work
--verbosity
-v
[int]
This will enable debug logging through the program.