This is probably s stupid question but I have been searching for an answer.
How do you set a different rest api password?
The instructions say : The credentials are set in the [webservice] section of the configuration using the admin_user and admin_pass properties. But what is that referring to?
I am running docker, so is this in the docker.yaml file (I tried it there it did not work) or in the Django config file or someplace else?
On 10/25/21 11:05 AM, bob B wrote:
This is probably s stupid question but I have been searching for an answer.
How do you set a different rest api password?
The instructions say : The credentials are set in the [webservice] section of the configuration using the admin_user and admin_pass properties. But what is that referring to?
I am running docker, so is this in the docker.yaml file (I tried it there it did not work) or in the Django config file or someplace else?
It's in mailman.cfg. Where that file is in the docker container, I don't know.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks,
That set me on the path, But having issue with DOCKER
For Docker I know you do not edit this fileĀ /etc/mailman.cfg. I believe It is generated from "/opt/mailman/core/mailman-extra.cfg" so in theĀ "/opt/mailman/core/mailman-extra.cfg" add a section to set the restapi password and restarted my containers.
I added in /opt/mailman/core/mailman-extra.cfg [webservice] admin_pass: restunicorn
But now in /etc/mailman.cfg I have two [webservice] sections and things are broke
[webservice] hostname: ******** port: 8001 admin_user: restadmin admin_pass: restpass configuration: /etc/gunicorn.cfg . . [webservice] admin_pass: restunicorn
Any thought on how to change it?
I just tried to change the password in the docker image in /etc/mailman.cfg, but as suspected that file get regenerated when i restart docker mailman.
Abhilash Raj, any idea on how to change the RESTAPI password in Docker?
On Oct 27, 2021, at 11:42 AM, bob B <bader@cchmc.org> wrote:
I just tried to change the password in the docker image in /etc/mailman.cfg, but as suspected that file get regenerated when i restart docker mailman.
Abhilash Raj, any idea on how to change the RESTAPI password in Docker?
You can set the MAILMAN_REST_PASSWORD environment variable in your mailman-core container and it will set the API password. You can do the same with MAILMAN_REST_USER.
For a list of supported env vars, please see the docs at https://asynchronous.in/docker-mailman/core/#configuration
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
Thanks and sorry i missed that, I knew it was going something simple, I had missed.
It also looks like you have to set it for mailman-web, Otherwise it breaks the web front end.
But that makes since since you have to set some other variables for all the containers.
On Oct 28, 2021, at 11:26 AM, bob B <bader@cchmc.org> wrote:
It also looks like you have to set it for mailman-web, Otherwise it breaks the web front end.
But that makes since since you have to set some other variables for all the containers.
Yeah, if you update the password, you need to give that to web to query Core. Hence it needs to be setup there as well.
-- thanks, Abhilash Raj (maxking)
participants (3)
-
Abhilash Raj
-
bob B
-
Mark Sapiro