1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-17 06:57:47 +02:00
a better way to manage your Jellyfin users, now in go.
Go to file
Harvey Tindall 6436dba48f
fixed custom config and data paths
any specified custom data path was only being used for the config file.
All combinations of options should work together now.
2020-08-16 14:26:07 +01:00
config attempt at using a config struct instead of the ini library 2020-08-15 22:07:48 +01:00
data disable generate button if duration is zero 2020-08-16 14:05:16 +01:00
images convert text to path to fix rendering on mobile 2020-08-02 13:16:43 +01:00
mail Add windows build support from jf-accounts 2020-08-04 18:24:11 +01:00
scss Add windows build support from jf-accounts 2020-08-04 18:24:11 +01:00
.gitignore Added makefile 2020-08-03 18:00:54 +01:00
.goreleaser.yml Images, fixed "data" path 2020-08-02 02:11:50 +01:00
api.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
auth.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
config.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
daemon.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
Dockerfile Added alpine and debian dockerfiles 2020-08-03 19:45:10 +01:00
dockerfile-debian Added alpine and debian dockerfiles 2020-08-03 19:45:10 +01:00
email.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
go.mod add pprof middleware 2020-08-03 00:13:09 +01:00
go.sum add pprof middleware 2020-08-03 00:13:09 +01:00
jfapi.go Added setup, self restarts 2020-08-02 00:05:35 +01:00
main.go fixed custom config and data paths 2020-08-16 14:26:07 +01:00
Makefile Added makefile 2020-08-03 18:00:54 +01:00
package-lock.json CLI flags, start setting up goreleaser, add build scripts 2020-08-01 21:20:02 +01:00
package.json CLI flags, start setting up goreleaser, add build scripts 2020-08-01 21:20:02 +01:00
pwreset.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
pwval.go Partial check for invite page, 404 handling 2020-07-31 13:03:36 +01:00
README.md add docker to readme 2020-08-03 20:10:45 +01:00
setup.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
storage.go CLI flags, start setting up goreleaser, add build scripts 2020-08-01 21:20:02 +01:00
views.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00

jfa-go

A rewrite of jellyfin-accounts in Go. It has feature parity with the Python version, but should be faster.

Install

Grab an archive from the release section for your platform, and extract jfa-go and data to the same directory. Run the executable to start.

For docker, run:

docker create \
             --name "jfa-go" \ # Whatever you want to name it
             -p 8056:8056 \
             -v /path/to/.config/jfa-go:/data \ # Equivalent of ~/.jf-accounts
             -v /path/to/jellyfin:/jf \ # Path to jellyfin config directory
             -v /etc/localtime:/etc/localtime:ro \ # Makes sure time is correct
             hrfee/jfa-go

Usage

Usage of ./jfa-go:
  -config string
    	alternate path to config file. (default "~/.config/jfa-go/config.ini")
  -data string
    	alternate path to data directory. (default "~/.config/jfa-go")
  -host string
    	alternate address to host web ui on.
  -port int
    	alternate port to host web ui on.

To switch from jf-accounts, copy your existing ~/.jf-accounts to:

  • XDG_CONFIG_DIR/jfa-go (usually ~/.config) on *nix systems,
  • %AppData%/jfa-go on Windows,
  • ~/Library/Application Support/jfa-go on macOS.

(or specify config/data path with -config/-data respectively.)

This is the first time i've even touched Go, and the code is a mess, so help is very welcome.