URL Base now refers to JUST the subfolder portion, i.e. `/accounts` if
you access jfa-go at `http://jellyf.in/accounts`. General > "jfa_url"/"External
jfa-go URL" now refers to the WHOLE URL you access jfa-go at, i.e.
`http://jellyf.in/accounts`. The settings in "invite emails" and
"password resets" have been removed, and a value chosen from the two
applied to "jfa_url". Migration also makes a config backup. Adds a
"deprecated" flag to config-base, which just tells the UI to not show
it (for now). Also added some warnings related to the URL base /
External URL.
"description":"URL base for when running jfa-go with a reverse proxy in a subfolder. include preceding /, e.g \"/accounts\"."
},
"jfa_url":{
"name":"External jfa-go URL",
"required":true,
"requires_restart":false,
"depends_true":"enabled",
"type":"text",
"value":"http://accounts.jellyf.in:8056",
"description":"The URL at which the jfa-go root (admin page) is accessible, including the subfolder if you use one. This is necessary because using a reverse proxy means the program has no way of knowing the URL itself."
},
"redirect_url":{
"name":"Form success redirect URL",
"required":false,
@ -1375,13 +1384,22 @@
"description":"Instead of automatically setting the user's password to the PIN, allow them to set a new password through the reset link."
},
"url_base":{
"name":"URL Base",
"name":"External jfa-go URL",
"required":true,
"requires_restart":false,
"depends_true":"link_reset",
"type":"text",
"value":"http://accounts.jellyf.in:8056",
"description":"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."
"description":"The URL at which the jfa-go admin page is accessible, including the subfolder if you use one. 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.",
"deprecated":true
},
"jfa_url":{
"name":"Generating Reset Links:",
"type":"note",
"value":"",
"depends_true":"link_reset",
"required":"false",
"description":"Set the \"External jfa-go URL\" in General so that links to jfa-go can be made."
},
"language":{
"name":"Default reset link language",
@ -1471,13 +1489,22 @@
"description":"Subject of invite emails."
},
"url_base":{
"name":"URL Base",
"name":"External jfa-go URL",
"required":true,
"requires_restart":false,
"depends_true":"enabled",
"type":"text",
"value":"http://accounts.jellyf.in:8056",
"description":"Base URL for jfa-go. This is necessary because using a reverse proxy means the program has no way of knowing the URL itself."
"description":"The URL at which the jfa-go root (admin page) is accessible, including the subfolder if you use one. 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.",
"deprecated":true
},
"jfa_url":{
"name":"Generating Links:",
"type":"note",
"value":"",
"depends_true":"enabled",
"required":"false",
"description":"Set the \"External jfa-go URL\" in General so that links to jfa-go can be made."
"urlBaseNotice":"Only needed if using a reverse proxy on a subfolder (e.g 'jellyf.in/accounts').",
"externalURL":"External jfa-go URL",
"externalURLNotice":"The URL you'll be accessing jfa-go from. Used to generate links for things like password resets. Make sure to include the above URL base if you set one.",
// the PWR setting (url1) is preferred, as it has always been defined as the URL root, while
// the invite email setting (url2) once asked for "/invite" at the end.
ifurl1==""{
preferred=strings.TrimSuffix(url2,"/invite")
}
fmt.Println(warning("The duplicate URL Base settings in \"Invite emails\" and \"Password Resets\" have been merged into General > External jfa-go URL. A backup config has been made."))