Thank you for your amazing work and plugins.
I have ERGO IRCD with Kiwiirc (without gateway) working well. I installed ASL, conference and emojis plugins without problem.
When i try to use this plugin, when i push the "upload" button nothing happens. I checked inspect tools in Chrome and i can't see any error (except 404 error when connect and try to retrieve the Image if not uploaded manually).
I tried to open api.php in browser and not show any error of folder (i see a code to check it).
My "avatar" folder have 777 permissions (i know is insecure but its for try everything). I generated the small etc folders inside with 777 too.
I have jwt-auth enabled in my ircd.yaml. This is my conf.
jwt-auth:
enabled: true
# should we automatically create users on presentation of a valid token?
autocreate: false
# any of these token definitions can be accepted, allowing for key rotation
tokens:
-
algorithm: "hmac" # either 'hmac', 'rsa', or 'eddsa' (ed25519)
# hmac takes a symmetric key, rsa and eddsa take PEM-encoded public keys;
# either way, the key can be specified either as a YAML string:
key: "nANiZ1De4v6WnltCHN2H7Q"
# or as a path to the file containing the key:
#key-file: "jwt_pubkey.pem"
# list of JWT claim names to search for the user's account name (make sure the format
# is what you expect, especially if using "sub"):
account-claims: ["preferred_username"]
# if a claim is formatted as an email address, require it to have the following domain,
# and then strip off the domain and use the local-part as the account name:
#strip-domain: "example.com"
And this is in my config.json file.
Plugins loaded:
Hi!`
Thank you for your amazing work and plugins. I have ERGO IRCD with Kiwiirc (without gateway) working well. I installed ASL, conference and emojis plugins without problem. When i try to use this plugin, when i push the "upload" button nothing happens. I checked inspect tools in Chrome and i can't see any error (except 404 error when connect and try to retrieve the Image if not uploaded manually).
I have jwt-auth enabled in my ircd.yaml. This is my conf.
jwt-auth:
And this is in my config.json file. Plugins loaded:
"plugins": [ { "name": "asl", "url": "plugins/asl/plugin-asl.js" }, { "name": "conference", "url": "plugins/conference/plugin-conference.min.js" }, { "name": "emoji", "url": "plugins/emojis/plugin-emojis-prelim.js"}, { "name": "avatar-upload", "url": "plugins/avatar/plugin-avatar-upload.js"}
],
And the configuration of plugin:
"plugin-avatar-upload" : { // Url path to api.php "api_url": "static/plugins/avatar/server-php/api.php", // Url path to avatar storage directory "avatars_url": "avatar/", "preload_avatars": false, "set_avatars": true, },
This is my api.php conf:
require 'vendor/autoload.php';
use Firebase\JWT\JWT; use Firebase\JWT\Key;
const JWT_ALGORITHM = 'hmac'; const THUMBNAIL_LARGE = 200; const THUMBNAIL_SMALL = 80;
const JWT_KEY = 'nANiZ1De4v6WnltCHN2H7Q'; const AVATAR_DIR = '/home/xxxx/public_html/chat/avatar'; const ALLOWED_DOMAINS = [ 'https://xxxx', '*127.0.0.1', ];
Any clue to find the problem is appreciated.