mirror of
https://github.com/house-of-vanity/mus-fuse.git
synced 2025-07-06 21:24:09 +00:00
Update name and unit file.
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -34,6 +34,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
asset_path: ./target/release/musfuse
|
asset_path: ./target/release/mus-fuse
|
||||||
asset_name: mus_fuse
|
asset_name: mus-fuse
|
||||||
asset_content_type: application/x-pie-executable
|
asset_content_type: application/x-pie-executable
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "musfuse"
|
name = "mus-fuse"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
authors = ["AB <ultradesu@hexor.ru>"]
|
authors = ["AB <ultradesu@hexor.ru>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -13,7 +13,7 @@ MusFuse is a FUSE filesystem over HTTP for music. It is using [playongo](https:/
|
|||||||
- Leverages Rust correctness.
|
- Leverages Rust correctness.
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
Here is a [binary release](https://github.com/house-of-vanity/mus_fuse/releases/latest) or compile it yourself. Anyway mind about dependencies listed below. Also there is a systemd unit file for managing service.
|
Here is a [binary release](https://github.com/house-of-vanity/mus_fuse/releases/latest) or compile it yourself. Anyway mind about dependencies listed below. Also there is a systemd unit file for managing service. Place it into `~/.config/systemd/user/mus-fuse.service`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Compile
|
# Compile
|
||||||
@ -23,7 +23,7 @@ $ cargo build --release
|
|||||||
# to baypass Basic Auth set
|
# to baypass Basic Auth set
|
||||||
# $HTTP_USER and $HTTP_PASS
|
# $HTTP_USER and $HTTP_PASS
|
||||||
# environment variables before run.
|
# environment variables before run.
|
||||||
$ ./target/release/musfuse <mountpoint> <server>
|
$ ./target/release/mus-fuse -m <mountpoint> -s <server>
|
||||||
|
|
||||||
# To get metrics
|
# To get metrics
|
||||||
$ cat <mountpoint>/METRICS.TXT
|
$ cat <mountpoint>/METRICS.TXT
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
Description=Mount mus-fuse
|
Description=Mount mus-fuse
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=ab
|
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=HTTP_USER=user
|
RestartSec=5
|
||||||
Environment=HTTP_PASS=pass
|
Restart=always
|
||||||
ExecStart=/usr/bin/mus-fuse /MUS https://mus.hexor.ru
|
Environment=HTTP_USER=<USER>
|
||||||
|
Environment=HTTP_PASS=<PASS>
|
||||||
|
ExecStart=/usr/local/bin/mus-fuse --mountpoint <PATH> --server <ADDRESS>
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=default.target
|
||||||
|
Reference in New Issue
Block a user