You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# Mu Python template
2
2
3
-
Template for [mu.semte.ch](http://mu.semte.ch)-microservices written in Python3. Based on the [Flask](https://palletsprojects.com/p/flask/)-framework.
3
+
Template for [mu.semte.ch](http://mu.semte.ch)-microservices written in Python3.8. Based on the [Flask](https://palletsprojects.com/p/flask/)-framework.
4
4
5
5
## Quickstart
6
6
7
7
Create a `Dockerfile` which extends the `semtech/mu-python-template`-image and set a maintainer.
8
8
```docker
9
9
FROM semtech/mu-python-template:2.0.0-beta.2
10
-
LABEL maintainer="sam.landuydt@gmail.com"
10
+
LABEL maintainer="maintainer@example.com"
11
11
```
12
12
13
13
Create a `web.py` entrypoint-file. (naming of the entrypoint can be configured through `APP_ENTRYPOINT`)
@@ -300,6 +300,7 @@ my-python:
300
300
```
301
301
302
302
### Environment variables
303
+
#### General
303
304
304
305
- `LOG_LEVEL`takes the same options as defined in the Python [logging](https://docs.python.org/3/library/logging.html#logging-levels) module.
305
306
@@ -317,7 +318,16 @@ my-python:
317
318
318
319
- `MU_SPARQL_TIMEOUT`is used to configure the timeout (in seconds) for SPARQL queries.
319
320
321
+
#### SPARQL Query Logging
322
+
- `LOG_SPARQL_ALL`: Log *all* executed queries, read as well as update (default `True`)
The string "true", ignoring casing, is considered `True`. All other values are considered `False`.
329
+
330
+
#### Meinheld Gunicorn Docker Variables
321
331
Since this template is based on the meinheld-gunicorn-docker image, all possible environment config for that image is also available for the template. See [meinheld-gunicorn-docker#environment-variables](https://github.com/tiangolo/meinheld-gunicorn-docker#environment-variables) for more info. The template configures `WEB_CONCURRENCY` in particular to `1` by default.
0 commit comments