This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
76 lines (76 loc) · 3.4 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
options:
database_migration_script:
type: string
description: >-
Specifies the relative path from /flask/app that points to a shell script
executing database migrations for the Flask application. This script is
designed to run once for each Flask container unit. However, users must ensure:
1. The script can be executed multiple times without issues;
2. Concurrent migrations from different units are safe.
In case of migration failure, the charm will re-attempt during the
update-status event. Successful database migration in a container ensures that
any configuration updates won't trigger another migration unless
the Flask container is upgraded or restarted.
flask_application_root:
type: string
description: >-
Path in which the application / web server is mounted. This configuration
will set the FLASK_APPLICATION_ROOT environment variable. Run
`app.config.from_prefixed_env()` in your Flask application in order to receive
this configuration.
flask_debug:
type: boolean
description: Whether Flask debug mode is enabled.
flask_env:
type: string
description: >-
What environment the Flask app is running in, by default it's 'production'.
flask_permanent_session_lifetime:
type: int
description: >-
Time in seconds for the cookie to expire in the Flask application permanent
sessions. This configuration will set the FLASK_PERMANENT_SESSION_LIFETIME
environment variable. Run `app.config.from_prefixed_env()` in your Flask
application in order to receive this configuration.
flask_preferred_url_scheme:
type: string
default: HTTPS
description: >-
Scheme for generating external URLs when not in a request context in the Flask
application. By default, it's "HTTPS". This configuration will set the
FLASK_PREFERRED_URL_SCHEME environment variable. Run
`app.config.from_prefixed_env()` in your Flask application in order to receive
this configuration.
flask_secret_key:
type: string
description: >-
The secret key used for securely signing the session cookie and for any other
security related needs by your Flask application. This configuration will set
the FLASK_SECRET_KEY environment variable. Run `app.config.from_prefixed_env()`
in your Flask application in order to receive this configuration.
flask_session_cookie_secure:
type: boolean
description: >-
Set the secure attribute in the Flask application cookies. This configuration
will set the FLASK_SESSION_COOKIE_SECURE environment variable. Run
`app.config.from_prefixed_env()` in your Flask application in order to receive
this configuration.
webserver_keepalive:
type: int
description: >-
Time in seconds for webserver to wait for requests on a Keep-Alive connection.
webserver_threads:
type: int
description: Run each webserver worker with the specified number of threads.
webserver_timeout:
type: int
description: Time in seconds to kill and restart silent webserver workers.
webserver_workers:
type: int
description: The number of webserver worker processes for handling requests.
webserver_wsgi_path:
type: string
default: "app:app"
description: The WSGI application path. By default, it's set to "app:app".