Thread: pgAdmin4 Container Deployment
Hi,
following the new feature "Allow a banner to be displayed on the login and other related pages showing custom text", how could I set the banner in a container deployment? Is there any
environment variables to pass it along?
Thanks
paolo saudin
following the new feature "Allow a banner to be displayed on the login and other related pages showing custom text", how could I set the banner in a container deployment? Is there any
environment variables to pass it along?
Thanks
paolo saudin
Hi,
You need to create a config_local.py beside config.py and set LOGIN_BANNER.
For example:
LOGIN_BANNER = "<h4>Authorised Users Only!</h4>" \"Unauthorised use is strictly forbidden."
On Fri, Aug 23, 2019 at 1:02 PM Paolo Saudin <paolosaudin@gmail.com> wrote:
Hi,
following the new feature "Allow a banner to be displayed on the login and other related pages showing custom text", how could I set the banner in a container deployment? Is there any
environment variables to pass it along?
Thanks
paolo saudin
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
Hi
On Fri, Aug 23, 2019 at 8:32 AM Paolo Saudin <paolosaudin@gmail.com> wrote:
Hi,
following the new feature "Allow a banner to be displayed on the login and other related pages showing custom text", how could I set the banner in a container deployment? Is there any
environment variables to pass it along?
In 4.12 you'd need to map a config_local.py file with the appropriate configuration settings in it, per https://www.pgadmin.org/docs/pgadmin4/4.12/container_deployment.html#mapped-files-and-directories.
In 4.13 (out in a little under 4 weeks) you can also set any config option through the environment; see the section on "PG_CONFIG_" in https://www.pgadmin.org/docs/pgadmin4/development/container_deployment.html#environment-variables, and the examples below which show LOGIN_BANNER being set.
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Il giorno ven 23 ago 2019 alle ore 10:03 Dave Page <dpage@pgadmin.org> ha scritto:
Hi--On Fri, Aug 23, 2019 at 8:32 AM Paolo Saudin <paolosaudin@gmail.com> wrote:Hi,
following the new feature "Allow a banner to be displayed on the login and other related pages showing custom text", how could I set the banner in a container deployment? Is there any
environment variables to pass it along?In 4.12 you'd need to map a config_local.py file with the appropriate configuration settings in it, per https://www.pgadmin.org/docs/pgadmin4/4.12/container_deployment.html#mapped-files-and-directories.In 4.13 (out in a little under 4 weeks) you can also set any config option through the environment; see the section on "PG_CONFIG_" in https://www.pgadmin.org/docs/pgadmin4/development/container_deployment.html#environment-variables, and the examples below which show LOGIN_BANNER being set.Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Thank you very much!
I am looking forward for the next release!
Paolo