1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-25 19:07:47 +02:00
a better way to manage your Jellyfin users, now in go.
Go to file
Harvey Tindall 151062fbc1
set gin mode before router initialization
this was previously set after the router was created, causing a debug
message every start.
2020-08-17 12:33:26 +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 added -y option to prebuild scripts using node_bin 2020-08-16 14:39:47 +01:00
scss added -y option to prebuild scripts using node_bin 2020-08-16 14:39:47 +01:00
.gitignore Added makefile 2020-08-03 18:00:54 +01:00
.goreleaser.yml Disable i386 builds 2020-08-16 14:55:39 +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 Shrunk dockerfile 2020-08-17 11:32:34 +01:00
email.go use app identifier instead of ctx 2020-08-16 13:36:54 +01:00
go.mod Upgrade packages 2020-08-16 14:33:10 +01:00
go.sum Upgrade packages 2020-08-16 14:33:10 +01:00
jfapi.go added user caching with 30m timeout 2020-08-16 16:08:37 +01:00
main.go set gin mode before router initialization 2020-08-17 12:33:26 +01:00
Makefile Added non interactive makefile option; fixed flags again 2020-08-16 20:11:16 +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.