3liz / lizmap-rfc

Lizmap Request For Comment
2 stars 0 forks source link

Use admin friendly configuration tools #6

Open dmarteau opened 4 years ago

dmarteau commented 4 years ago

Lizmap RFC: [ADMIN] Use admin friendly configuration

Date 2019/08/21

Author David Marteau (@dmarteau)

Version Lizmap-Web-Client4

Summary

Lizmap should be Admin/devops friendly and work seemlessly with provisional and deployment tools (ansible etc....).

Proposed Solution

Configuration files should be well identified

Configuration files should be well identified depending on their roles: use separate files for projects/repository, theming, log configs or use include directive in config files enabling splitting the config in differents parts for easier deployment (see nginx config for example)

Configuration files should switch to YAML or JSON

More expressive and easier to handle with high-level languages

Users and projects must be configurable with server side API

This may be a cli tool or an http REST API (favor a REST API for administration)

Affected Files

Configuration files, configuration api.

Backwards Compatibility

None, Lizmap 4 must provide a migration tool to upgrade configuration files.

Votes

(required)

rldhont commented 4 years ago

Use Jelix 1.7 to fix it

laurentj commented 4 years ago

We should implements some cli commands (using Symfony Console, like in Jelix 1.7), to manage system configuration of Lizmap.

laurentj commented 4 years ago

Configuration files should switch to YAML or JSON

No, because :

So I 'm not in favor to change the configuration file format of Jelix/Lizmap.

Ini file are: