Help a beginner! (((((
After successfully installing Teampass via Docker, I encountered several issues. First, I want to clarify that I deployed it using plain HTTP on port 8080, without a certificate and without HTTPS. Since this instance will be local, I plan to set up an Nginx proxy on the host machine later, but I have not yet figured out how I will implement HTTPS. I hope my issues are not related to that. Here they are:
When I set the MariaDB version to 11.2, I always get an error during the initial setup in the web interface when configuring the database connection. But if I use "latest", everything works.
After I managed to get through that long and difficult step (I am a beginner), I received another error during the first login. I cannot recall the exact message now. After some investigation through GPT, I found that there was a restriction in the file /etc/nginx/http.d/default.conf inside the teampass-app container. I was advised to remove "|includes/libraries" from the line "location ~ /(includes/config|includes/libraries|backups|install/upgrade_scripts|vendor)/ {" and also to add the following:
Allow JavaScript encryption library
location /includes/libraries/cryptojs/ { allow all; }
Allow CSRF (frontend JS)
location /includes/libraries/csrfp/js/ { allow all; }
This solved the issue, but I have no idea what exactly I changed or why. Please explain where this problem comes from.
How am I supposed to create a local user? Why is there no field to define a password when creating a new user? I tried enabling and disabling MFA, but it did not help. After LDAP synchronization, users appeared, but when I click “add user in Teampass,” I get the following error:
Caution × Decryption error occurred SyntaxError: Unexpected end of JSON input
Raw answer from server:
Because of this, I cannot log in with LDAP users and I also cannot create a local one. Why is this process so complicated? I need help.
Finally, as a beginner, I was not able to connect to the database inside the teampass-db container. I eventually realized that I needed to expose a port in docker-compose.yml and then connect from the host using: "mysql -h localhost -P 3306 -u root -p". Please confirm whether this is the correct approach. When I try to connect directly inside the teampass-db container, I cannot open MySQL at all; only the method above works. I am not sure if this is correct or not.
I beleive you are using Docker. Sorry but I have no experience in Docker so I cannot help really
"Why is there no field to define a password when creating a new user?"
The user will be emailed a random password. When creating the user, you can tick a box to show the password (if you want to see it).