* Add option to enable REST API * Add option to enable live dashboard * Add option to install WAF module * Load modules in nginx.conf * Improve version check for RedHat distros
16 lines
241 B
Django/Jinja
16 lines
241 B
Django/Jinja
server {
|
|
listen 8080;
|
|
location /api {
|
|
{% if api.write %}
|
|
api write=on;
|
|
{% else %}
|
|
api;
|
|
{% endif %}
|
|
}
|
|
{% if api.dashboard %}
|
|
location = /dashboard.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
{% endif %}
|
|
}
|