1
0
angie-conv-image/doc/examples/static-template/README.md

27 lines
556 B
Markdown
Raw Normal View History

2024-09-20 01:27:15 +03:00
# static site with templates
2024-11-08 14:19:36 +03:00
consult [Dockerfile](Dockerfile) or [docker-compose.yml](docker-compose.yml) - both are simple and fine enough.
---
2024-09-20 01:27:15 +03:00
mostly same as [simple static site](../basic/README.md) except environment variable `NGX_PROCESS_STATIC=1`.
configuration:
```nginx
server {
listen 8080;
}
```
Also note that there's no `index.html` but `index.html.j2`:
```jinja
<hmtl>
<body>
<h1>Hello World</h1>
This image is powered by Angie {{ env.ANGIE_VERSION }} and Python {{ env.PYTHON_VERSION }}.
</body>
</hmtl>
```