Set up Public Access

It is possible to set up Portrait with public access. This allows users to access your data in Portrait without having a user.

In the following, we will explain the steps you need to take to make your instance publicly accessible. For public access, we strongly recommend running Portrait through a reverse proxy, please refer to Set up a reverse proxy for further information in this matter.

Public mode must be licensed in Portrait. Please contact your Portrait partner for further details.

Enabling public access

Public access is enabled in the .env file. The .env file is located under <Portrait Installation Path>/app/config/frontend. For further information about the .env file, please refer to Advanced UI Settings.

In the .env file, set NEXT_PUBLIC_PUBLIC_ACCESS to true. After a restart of Portrait, you should be able to access your Portrait instance without having to log in now.

Accessing the administration site with public access enabled

As an administrator in order to access the administration panel while in public mode, type in https://<portrait.customer.xyz>/admin

From there, you can log in and administer your instance.

Copyright Treskon GmbH.