1
0
mirror of https://github.com/falk-werner/webfuse synced 2026-03-02 03:40:24 +00:00

allow to specify authentication token via command line or environment variable

This commit is contained in:
Falk Werner
2023-02-04 09:59:32 +01:00
parent b55ae45018
commit 97f4acb98e
2 changed files with 36 additions and 4 deletions

View File

@@ -15,6 +15,13 @@ Inject a remote filesystem via webfuse.
| -p | --path | path | path of local filesystem to inject (default: .) |
| -u | --url | url | url of webfuse server |
| -a | --ca-path | path | path of ca file |
| -t | --token | token | authentication token (overrides WEBFUSE_TOKEN) |
## Environment variables
| Variable | Description |
| -------- | ----------- |
| WEBFUSE_TOKEN | Default value of webfuse token |
## Examples
@@ -28,3 +35,5 @@ Inject a remote filesystem via webfuse.
`webfuse_provider -u wss://localhost/`
- inject current diectory via TLS using a specific ca:
`webfuse_provider -u wss://localhost/ -a /path/to/server-cert.pem`
- inject current directory, authenticate via token:
`webfuse_provider -u wss://localhost/ -t my_token`