chatpad icon indicating copy to clipboard operation
chatpad copied to clipboard

.htapasswd option

Open Stehos opened this issue 1 year ago • 1 comments

Hi, I am trying to secure access to my chatpad.ai application running inside docker on my vps.

simply adding the following to my nginx website.conf:

    auth_basic "Administrator’s Area";
    auth_basic_user_file /etc/nginx/.htpasswd;

After this change, when I try to visit my application and after confirming credentials, the application is not loaded and in the console, there are these errors:

` Object { _e: Error, name: "DatabaseClosedError", message: "InvalidStateError A mutation operation was attempted on a database that did not allow mutations.\n InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.", inner: {…}, stack: "" } index.020772d9.js:31:72520

Object { _e: Error, name: "DatabaseClosedError", message: "InvalidStateError A mutation operation was attempted on a database that did not allow mutations.\n InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.", inner: {…}, stack: "" } index.020772d9.js:31:72520

Object { _e: Error, name: "DatabaseClosedError", message: "InvalidStateError A mutation operation was attempted on a database that did not allow mutations.\n InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.", inner: {…}, stack: "" } `

Is there any option to secure the app under username/password protection so it can not be visited by everyone?

Thanks for the advice.

Stehos avatar Jul 11 '23 08:07 Stehos

You could check out authelia or NGINX Proxy Manager to secure your apps. Would that work?

jonasbg avatar Jul 12 '23 17:07 jonasbg