diff --git a/data/static/setup.js b/data/static/setup.js index b018425..4f20b11 100644 --- a/data/static/setup.js +++ b/data/static/setup.js @@ -186,6 +186,10 @@ document.getElementById('submitButton').onclick = function() { }; // Page 3: Connect to jellyfin config['jellyfin']['server'] = document.getElementById('jfHost').value; + let publicAddress = document.getElementById('jfPublicHost').value; + if (publicAddress != "") { + config['jellyfin']['public_server'] = publicAddress; + } config['jellyfin']['username'] = document.getElementById('jfUser').value; config['jellyfin']['password'] = document.getElementById('jfPassword').value; // Page 4: Email (Page 5, 6, 7 are only used if this is enabled) diff --git a/data/templates/setup.html b/data/templates/setup.html index 57d2cd7..6117b8f 100644 --- a/data/templates/setup.html +++ b/data/templates/setup.html @@ -43,7 +43,7 @@
Welcome!

- You'll need to do a few things to start using jellyfin-accounts. Click below to get started, or quit and edit the config file manually. + You'll need to do a few things to start using jfa-go. Click below to get started, or quit and edit the config file manually.

Get Started
@@ -57,7 +57,7 @@

To access the admin page, you'll need to login. Choose how below.

@@ -104,12 +104,16 @@
Jellyfin

- jellyfin-accounts needs admin access so that it can create users. + jfa-go needs admin access so that it can create users, as this is currently not permitted via API tokens. You should create a separate account for it, checking 'Allow this user to manage the server'. You can disable everything else. Once done, enter the credentials here.

- +
+
+ + +
@@ -130,7 +134,7 @@
Email
-

jellyfin-accounts is capable of sending a PIN code when a user tries to reset their password on Jellyfin. One can also choose to send an invite code directly to an email address. This can be done through SMTP or through Mailgun's API. +

jfa-go is capable of sending a PIN code when a user tries to reset their password on Jellyfin. One can also choose to send an invite code directly to an email address. This can be done through SMTP or through Mailgun's API.

@@ -236,7 +240,7 @@
Password Resets

- When a user tries to reset their password in jellyfin, it informs them that a file has been created, named "passwordreset*.json" where * is a number. jellyfin-accounts will then read this file, and send the PIN to the user's email. Try it now, and put the folder that it informs you it put the file in below. Also, if enter a custom email subject if you don't like the default one. + When a user tries to reset their password in jellyfin, it informs them that a file has been created, named "passwordreset*.json" where * is a number. jfa-go will then read this file, and send the PIN to the user's email. Try it now, and put the folder that it informs you it put the file in below. Also, if enter a custom email subject if you don't like the default one.