int
int
string
string
default
; therefore, PORTAL_THEMING_THEME defaults to default
.
However, if you have already created a theme and want the portal to use when it starts for the first time, then you can use this setting to achieve that.
string
fs
storage type, you can specify both a relative path (e.g., ./themes
) and an absolute path (e.g., /themes
)s3
or db
storage type, however, you can only use an absolute path (e.g., /themes
)../themes
, so it’s important to redefine it if you plan to use the s3
or db
storage types.
boolean
false
.
int
PORTAL_MAX_UPLOAD_SIZE
.
string
stoplight
to use Stoplight as a documentation renderer;redoc
to use Redoc as a documentation renderer.stoplight
.
boolean
true
for enabling the detailed logs;false
for disabling the detailed logs.
The default value is false
.PORTAL_AUDIT_LOG_ENABLE
setting.
boolean
false
.
string
portal.log
in that directory. All admin actions will be reflected in that file.
string
portal-session
.
boolean
Secure
attribute to the Set-Cookie
header in all responses from the portal’s backend, except for the admin APIs. It’s important to note that if the connection between the portal and the browser is not secured with TLS, the browser will ignore the Secure
attribute.
We recommend enabling TLS and setting this attribute to true
for all production environments. The default value is false
.
boolean
HttpOnly
attribute to the Set-Cookie
header in all responses from the portal’s backend, except for the admin APIs. This cookie attribute controls if the cookie is only accessible at the server and not by JavaScript on the client side.
This is a security measure to prevent XSS attacks.
We recommend setting it to true
in production environments. The default value is true
.
string
SameSite
attribute for the portal’s cookie. The portal adds the SameSite
attribute with the value specified in PORTAL_SESSION_SAMESITE
to the Set-Cookie
header in all responses from the portal’s backend, except for the admin APIs.
Available options are:
None
;Lax
;Strict
.Strict
. If the value specified in the PORTAL_SESSION_SAMESITE
setting does not match any of the above-mentioned options, it defaults to Strict
.
string
int
int
boolean
/debug/pprof/
. The default value is false
.
PORTAL_ENABLE_HTTP_PROFILER
to false
.string
string
dev
for verbose human-readable outputprod
for output in json format.boolean
false
.
boolean
string
TLS Version | Value to Use |
---|---|
1.0 | 769 |
1.1 | 770 |
1.2 | 771 |
1.3 | 772 |
string
TLS Version | Value to Use |
---|---|
1.0 | 769 |
1.1 | 770 |
1.2 | 771 |
1.3 | 772 |
[]string
json
string
[]{Key: string, Value: string}
X-Frame-Options
, Content-Security-Policy
)string
fs
to use file system storage type;db
to use the portal’s main database. If the db
is selected as a storage type, the portal application will create appropriate structure in the database thats3
to use S3 volume for storing the portal assets.fs
.
string
s3
storage type and will be ignored for the fs
and db
storage types.
string
s3
storage type and will be ignored for the fs
and db
storage types.
string
sa-east-1
. This option is only required for the s3
storage type and will be ignored for the fs
and db
storage types.
string
https://s3.sa-east-1.amazonaws.com
or https://play.min.io
. This option is only required for the s3
storage type and will be ignored for the fs
and db
storage types.
string
s3
storage type. This option is only required for the s3
storage type and will be ignored for the fs
and db
storage types.
string
private
, public-read
, public-read-write
, and authenticated-read
.
If the bucket uses a policy to set permissions, you should leave the ACL value empty. This option is only required for the s3
storage type and will be ignored for the fs
and db
storage types.
string
s3
storage type and will be ignored for the fs
and db
storage types.
boolean
db
, an in-memory cache will be used for the themes storage. This configuration disables the assets cache. The default value is false
.
boolean
false
.
string
Name
: The hostname of the portal. This should match the hostname of the certificate file.CertFile
: The path to a TLS certificate file in the CRT format for the specified hostname.KeyFile
: The path to a TLS key file for the specified hostname.
Example:string
mysql
postgres
sqlite3
string
PORTAL_DATABASE_DIALECT
is specified.
boolean
int
int
int
int
int
0
, the connection lifetime is unlimited, meaning connections are reused indefinitely unless closed due to errors or manually by the application.
boolean
false
.
[string]
*.foo.com
] will allow access from any domain that ends with .foo.com.
By default, no origins are allowed. To apply this setting, an array of the allowed origins.
To configure using a configuration file:
[string]
[string]
GET
and POST
methods are allowed.
To configure using a configuration file:
int
0
, which stands for no max age.
bool
true
, disables CSRF protection for all routes. By default, CSRF protection is enabled to prevent cross-site request forgery attacks. Only disable this in development environments or when you have alternative security measures in place.
boolean
false
.
boolean
false
.
int
30
minutes.