hrfee / jfa-go

a bit-of-everything user managament app for Jellyfin

Home Page:https://jfa-go.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filed to authenticate with Jellyfin @. (404)

davboor opened this issue · comments

hi i ruunig on macOS

2023/05/07 10:32:48 Using internal storage
jfa-go version: 0.4.0 (c6fc576)
Socket: /tmp/jfa-go.sock
[INFO] 10:32:48 Using Jellyfin server type

main.go:436: �[31mFailed to authenticate with Jellyfin @ "https://gxthor.giga-rapid.com/jellyfin/****/" (404): �[0m
goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
main.Exit({0x185de40, 0xc0003e0260})
/drone/src/exit.go:57 +0x2e5
github.com/hrfee/jfa-go/logger.(*Logger).Fatalf(0xc0004cf170, {0x19a882c, 0x34}, {0xc0003b5d38, 0x3, 0x3})
/drone/src/logger/logger.go:128 +0x135
main.start(0x0, 0xda)
/drone/src/main.go:436 +0x2925
main.main()
/drone/src/main.go:753 +0x531

i create one user for jfa-go user and password is ok
the test connection is ok after the send me this error
sorry for my English ejejej
thanks

config file

first_run = false

[updates]
; settings for update notifications and release channel.
; enable/disable updating notifications and downloading/applying updates.
enabled = true
; release channel for updates.
channel =

[jellyfin]
; settings for connecting to jellyfin
; it is recommended to create a limited admin account for this program.
username = ***
password = ******
; jellyfin server address. can be public, or local for security purposes.
server = https://gxthor.giga-rapid.com/jellyfin/****/
; publicly accessible jellyfin address for invite form. leave blank to reuse the above address.
public_server =
; the name of the client that will show up in the jellyfin dashboard.
client = jfa-go
; timeout of user cache in minutes. set to 0 to disable.
cache_timeout = 30
; note: emby integration works but is missing some features, such as password resets.
type = jellyfin
; optionally substitute occurrences of "jellyfin" in the account creation form and emails with this. may result in bad grammar.
substitute_jellyfin_strings =

[ui]
; settings related to the ui and program functionality.
; default account form language. visit weblate.jfa-go.com if you'd like to translate.
language-form = es-es
; default admin page language. settings has not been translated. visit weblate.jfa-go.com if you'd like to translate.
language-admin = es-es
; default appearance for all users.
theme = Jellyfin (Dark)
; set 0.0.0.0 to run on localhost
host = 0.0.0.0
port = 8056
; enable this to use jellyfin users instead of the below username and pw.
jellyfin_login = true
; allows only admin users on jellyfin to access the admin page.
admin_only = true
; allow all jellyfin users to access jfa-go. not recommended, add individual users in the accounts tab instead.
allow_all = false
; username for admin page (leave blank if using jellyfin_login)
username =
; password for admin page (leave blank if using jellyfin_login)
password =
; address to send notifications to (leave blank if using jellyfin_login)
email =
; enables debug logging and exposes pprof as a route (don't use in production!)
debug = false
; displayed at bottom of all pages except admin
contact_message = Need help? contact me.
; displayed at top of invite form.
help_message = Enter your details to create an account.
; displayed when a user creates an account
success_message = Your account has been created. Click below to continue to Jellyfin.
; url base for when running jfa-go with a reverse proxy in a subfolder. include preceding /, e.g "/accounts".
url_base =
; set a different url for the sign-up form to redirect the user to when they've signed up. default to 'public server' or 'server' in the jellyfin tab.
redirect_url =

[advanced]
; advanced settings.
; enable tls.
tls = false
; port to run tls server on
tls_port = 8057
; path to .crt file. see jfa-go wiki for more info.
tls_cert =
; path to .key file. see jfa-go wiki for more info.
tls_key =

[captcha]
; settings related to user creation captchas.
; enable a captcha on the account creation form.
enabled = false

[password_validation]
; password validation (minimum length, etc.)
enabled = true
min_length = 8
upper = 1
lower = 0
number = 1
special = 0

[messages]
; general settings for emails/messages.
; enable the sending of emails/messages such as password resets, announcements, etc.
enabled = true
use_24h = true
; date format used in emails. follows datetime.strftime format.
date_format = %d/%m/%y
; message displayed at bottom of emails.
message = Need help? contact me.

[email]
; general email settings.
; default email language. submit a pr on github if you'd like to translate.
language = es-es
; use email address from invite form as username on jellyfin.
no_username = false
; method of sending email to use.
method = smtp
; address to send emails from
address = jellyfin@jellyf.in
; the name of the sender
from = Jellyfin
; send emails as plain text instead of html.
plaintext = false
; require an email address on sign-up.
required = false

[mailgun]
; mailgun api connection settings
api_url = https://api.mailgun.net...
api_key = your api key

[smtp]
; smtp server connection settings.
; username for smtp. leave blank to user send from address as username.
username =
; your email provider should provide different ports for each encryption method. generally 465 for ssl_tls, 587 for starttls.
encryption = starttls
; smtp server address.
server = smtp.jellyf.in
port = 465
password = smtp password
; hostname sent when sending hello to the smtp server. some servers don't like the default "localhost" value, such as smtp-relay.gmail.com.
hello_hostname = localhost
; use if your smtp server's ssl certificate is not trusted by the system.
ssl_cert =
; warning, disabling this makes you much more vulnerable to man-in-the-middle attacks
cert_validation = true

[discord]
; settings for discord invites/signup/notifications
; enable signup verification through discord and the sending of notifications through it.
; see the jfa-go wiki for setting up a bot.
enabled = false
; allow users to link their discord on the registration page.
show_on_reg = true
; require discord connection on sign-up. see the jfa-go wiki for info on setting this up.
required = false
; discord bot api token.
token =
; command to start the user verification process.
start_command = start
; only listen to commands in specified channel. leave blank to monitor all.
channel =
; generate a one-time discord server invite for the account creation form. required bot permission "create instant invite", you may need to re-add the bot to your server after.
provide_invite = false
; channel to invite new users to.
invite_channel =
; add the selected role to a user when they sign up.
apply_role =
; default discord message language. visit weblate if you'd like to translate.
language = en-us

[telegram]
; settings for telegram signup/notifications. see the jfa-go wiki for info on setting this up.
; enable signup verification through telegram and the sending of notifications through it.
; see the jfa-go wiki for setting up a bot.
enabled = false
; allow users to link their telegram on the registration page.
show_on_reg = true
; require telegram connection on sign-up.
required = false
; telegram bot api token.
token =
; default telegram message language. visit weblate if you'd like to translate.
language = en-us

[matrix]
; settings for matrix invites/signup/notifications. see the jfa-go wiki for info on setting this up.
; enable signup verification through matrix and the sending of notifications through it.
; see the jfa-go wiki for setting up a bot.
enabled = false
; allow users to link their matrix on the registration page.
show_on_reg = true
; require matrix connection on sign-up.
required = false
; matrix home server url.
homeserver =
; matrix bot api token.
token =
; user id of bot account (example: @jfa-bot:riot.im)
user_id =
; topic of matrix private chats.
topic = Jellyfin notifications
; default matrix message language. visit weblate if you'd like to translate.
language = en-us
; enable end-to-end encryption for messages. very experimental, currently does not support receiving commands (e.g !lang).
encryption = false

[password_resets]
; settings for the password reset handler.
; enable to store provided email addresses, monitor jellyfin directory for pw-resets, and send reset pins
enabled = false
; path to the folder jellyfin puts password-reset files.
watch_directory = /path/to/jellyfin
; send users a link to reset their password instead of a pin. must be enabled to reset ombi password at the same time as the jellyfin password.
link_reset = false
; instead of automatically setting the user's password to the pin, allow them to set a new password through the reset link.
set_password = false
; base url for jfa-go. you can leave this if you have one set in "invite emails". this is necessary because using a reverse proxy means the program has no way of knowing the url itself.
url_base = http://accounts.jellyf.in:8056
; default language for password reset success screen.
language = en-us
; path to custom email html
email_html =
; path to custom email in plain text
email_text =
; subject of password reset emails.
subject =

[invite_emails]
; settings for sending invites directly to users.
enabled = false
; path to custom email html
email_html =
; path to custom email in plain text
email_text =
; subject of invite emails.
subject =
; base url for jfa-go. this is necessary because using a reverse proxy means the program has no way of knowing the url itself.
url_base = http://accounts.jellyf.in:8056

[template_email]
; settings for the template used for announcements & custom messages. html should include {{ .text }}, plaintext should include {{ .plaintext }}, and either can have {{ .message }} to include the contact message.
; path to custom email html template for announcements/custom messages.
email_html =
; path to custom email text template for announcements/custom messages.
email_text =

[notifications]
; notification related settings.
; enabling adds optional toggles to invites to notify on expiry and user creation.
enabled = false
; path to expiry notification email html.
expiry_html =
; path to expiry notification email in plaintext.
expiry_text =
; path to user creation notification email html.
created_html =
; path to user creation notification email in plaintext.
created_text =

[ombi]
; connect to ombi to automatically create both ombi and jellyfin accounts for new users. you'll need to add a ombi template to an existing user profile for accounts to be created, which you can do by refreshing then checking settings > user profiles. to handle password resets for ombi & jellyfin, enable "use reset link instead of pin".
; enable to create an ombi account for new jellyfin users
enabled = false
; ombi server url, including http(s)://.
server = localhost:5000
; api key. get this from the first tab in ombi settings.
api_key =

[welcome_email]
; optionally send a welcome message to new users with the jellyfin url and their username.
; enable to send welcome emails to new users.
enabled = false
; subject of welcome emails.
subject =
; path to custom email html
email_html =
; path to custom email in plain text
email_text =

[email_confirmation]
; if enabled, a user will be sent an email confirmation link to ensure their password is right before they can make an account.
enabled = false
; subject of email confirmation emails.
subject =
; path to custom email html
email_html =
; path to custom email in plain text
email_text =

[user_expiry]
; when set on an invite, users will be deleted or disabled a specified amount of time after they create their account.
; whether to delete or disable users on expiry.
behaviour = disable_user
; send an email when a user's account expires.
send_email = true
; subject of user expiry emails.
subject =
; path to custom email html
email_html =
; path to custom email in plain text
email_text =

[disable_enable]
; subject/email files for account disabling/enabling emails.
; subject of account disabling emails.
subject_disabled =
; subject of account enabling emails.
subject_enabled =
; path to custom email html
disabled_html =
; path to custom email in plain text
disabled_text =
enabled_html =
enabled_text =

[deletion]
; subject/email files for account deletion emails.
; subject of account deletion emails.
subject =
; path to custom email html
email_html =
; path to custom email in plain text
email_text =

[files]
; optional settings for changing storage locations.
; location of stored invites (json).
invites =
; location of stored non-jellyfin password resets (json).
password_resets =
; location of stored email addresses (json).
emails =
; stores users temporarily when a user expiry is set.
users =
; location of stored ombi user template.
ombi_template =
; location of stored user profiles (encompasses template and configuration and displayprefs) (json)
user_profiles =
; path to directory containing custom versions of web ui pages. see wiki for more info.
html_templates =
; the path to a directory which following the same form as the internal 'lang/' directory. see github for more info.
lang_files =
; json file generated by program in settings, different from email_html/email_text. see wiki for more info.
custom_emails =
; stores telegram user ids and language preferences.
telegram_users =
; stores matrix user ids and language preferences.
matrix_users =
; stores cryptographic material for matrix end-to-end encryption.
matrix_sql =
; stores discord user ids and language preferences.
discord_users =
; stores custom announcement templates.
announcements =

If you are locally hosting your Jellyfin instance which I think you are you need to set both the internal and external address, the first one being your localhost and the second being your external site